Skip to content

Commit

Permalink
ngr: Fix Java/Gradle on CI/GHA
Browse files Browse the repository at this point in the history
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
tests/test_ngr.py::test_ngr_sample[ngr/java-gradle] FAILED

Tested on both version 11 and version 17.
  • Loading branch information
amotl committed Oct 30, 2023
1 parent 14d603a commit 01f611e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pueblo/ngr/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ def install(self) -> None:
if self.has_pom_xml:
run_command("mvn install")
elif self.has_gradle_files:
run_command("gradle wrapper")
run_command("./gradlew install")
else:
raise NotImplementedError("Unable to invoke target: install")
Expand Down

0 comments on commit 01f611e

Please # to comment.