Gradle Build Does Not Work #44704
Unanswered
schrum2
asked this question in
Codespaces
Replies: 1 comment 1 reply
-
I found that uninstalling and reinstalling Gradle with the following commands fixes the problem:
However, this clearly shouldn't be necessary. If I just try to install Gradle, then I'm told I already have it and the current version is not replaced. It would be nice if this just worked from the start. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Bug
Body
Gradle testing on a new Java codespace does not work. This failure happened in a repository where gradle previously functioned fine, so I assume that some aspect of the default codespace configuration changed. Here are some details.
Running
gradle test
produces this error:Basically, it seems that gradle is looking for Java in the wrong place, but Java does run and successfully compile my code.
Here is the
gradle --version
:And the
java --version
:Also, I don't know if there is actually a connection, but I had other issues getting gradle builds to work in Java before:
https://github.com/orgs/community/discussions/37051
Also, I accidentally posted this message here first: devcontainers/images#340
Beta Was this translation helpful? Give feedback.
All reactions