This message was deleted.
# community-support
s
This message was deleted.
a
what's the error you're getting? P.S. it's generally not very useful to share screenshots when asking for help with code https://meta.stackoverflow.com/questions/285551/why-should-i-not-upload-images-of-code-data-errors/285557#285557
j
Sorry it's just literally not reading my annotation for dynamo db.
a
sorry, I'm not sure what you mean. What's not reading your annotation? Do you mean a Java annotation?
j
So when I try to use dynamo db annotations the ide doesn't recognize it and the import statements don't work either. What I'm asking for is how to add dependencies for dynamo db in 2023.
a
the format you've used to add a dependency looks normal to me, but double check that the coordinates are correct. Is there a tutorial or guide that you're following?
j
Not atm. There isn't any post that I can find on the exact matter.
n
From your screenshot, it looks like you define an implementation dependency to dynamodb in the root module, but the classes that use dynamodb are in a sub-folder called Application. Given that you don't have a
settings.gradle(.kts)
file, it doesn't look like you've configured Application as a module. In any case, if you would configure the Application folder as a module, it will not have access to that dependency. See the following documentation for structuring multi-module gradle projects: https://docs.gradle.org/current/userguide/structuring_software_products.html#header In this simple case (for now), it might make more sense to simply move your classes to the root module:
UMS > Application > src/main/java > ...
becomes
UMS > src/main/java > ...
v
Also maybe do not use an ancient Gradle version. Since Gradle 7.0 which was released April 2021 it is an error to not have a settings script. 🙂