Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set JAVA_HOME in gradle-jdks-setup script #447

Merged
merged 14 commits into from
Oct 25, 2024
Prev Previous commit
fix output format
  • Loading branch information
crogoz committed Oct 25, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 6f9a3e7d53ea830c1140fd3a81b344e7bf658e45
Original file line number Diff line number Diff line change
@@ -174,7 +174,7 @@ private void dockerBuildAndRunTestingScript(String baseImage, String shell, bool
assertThat(runCommandWithZeroExitCode(
List.of("docker", "run", "--rm", dockerImage, shell, "/testing-script.sh")))
.contains("openjdk version \"11.0.21\"")
.contains("JAVA_HOME is set to /root/.gradle/gradle-jdks/amazon-corretto-11.0.21.9.1");
.contains("JAVA_HOME is set to: /root/.gradle/gradle-jdks/amazon-corretto-11.0.21.9.1");
}

private static String runCommandWithZeroExitCode(List<String> commandArguments)