This message was deleted.
# community-support
s
This message was deleted.
e
Hey, @Chad Hogg! Welcome to Gradle! 🙂 What does the directory structure look like to your
.java
file look like? It should look like
src/main/java/com/example/Foo.java
where the package name for
Foo
is
com.example
.
c
src/edu/millersville/csci406/spring2023/common/DataSourceException.java
is the path to the file. The first line of it is
package edu.millersville.csci406.spring2023.common;
e
Ah, the top level directories should be
src/main/java
. Try that.
c
with then the full package hierarchy inside main/java ?
e
Correct. Like this:
src/main/java/edu/millersville/csci406/spring2023/common/DataSourceException.java
c
OK, It's trying to build now, thanks!
e
🥳
Great! And once again, welcome to Gradle!
c
I just have to figure out
Could not find org.postgresql:postgresql:.
e
Yes, it looks like you are missing the version number.
c
is there a way to say "whatever the most recent version number is"?
e
You can, but I recommend that you define the version explicitly. That way if a new version of the library is released, it will not break your code. For that you should specify:
Copy code
org.postgresql:postgresql:42.5.1
If you really want to use a dynamic version, you can read more about it here in the Gradle documentation.
c
OK, thanks
e
My pleasure. 🙂