From 01f611e30d8e2b56fc4039606cef156127cdda6c Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Mon, 30 Oct 2023 10:41:11 +0100 Subject: [PATCH] ngr: Fix Java/Gradle on CI/GHA 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. --- pueblo/ngr/runner.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pueblo/ngr/runner.py b/pueblo/ngr/runner.py index bb20e6c..64912dc 100644 --- a/pueblo/ngr/runner.py +++ b/pueblo/ngr/runner.py @@ -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")