Skip to content

Commit

Permalink
Provide Gradle toolchain resolver implementation (#5475)
Browse files Browse the repository at this point in the history
Also offers more information when safety checks fail.
  • Loading branch information
niloc132 authored May 10, 2024
1 parent 59fcced commit d61893f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions buildSrc/settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
plugins {
id 'org.gradle.toolchains.foojay-resolver-convention'
}
rootProject.name = 'buildSrc'
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ private static void check() {
}
if (isVulnerableVersion() && !hasWorkaround()) {
throw exception(JDK_8287432.class, String.format(
"The current JDK is vulnerable to the bug https://bugs.openjdk.org/browse/JDK-8287432. We recommend updating to 11.0.17+, 17.0.5+, or 21+. If that is not possible, you can apply a workaround '%s'.",
"The current JDK %s (located at %s) is vulnerable to the bug https://bugs.openjdk.org/browse/JDK-8287432. We recommend updating to 11.0.17+, 17.0.5+, or 21+. If that is not possible, you can apply a workaround '%s'.",
Runtime.version(),
System.getProperty("java.home"),
String.join(" ", workaroundJvmArguments())));
}
}
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'com.gradle.enterprise' version '3.13.1'
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
}

gradle.ext.buildStartTime = new Date()
Expand Down

0 comments on commit d61893f

Please sign in to comment.