You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change bumps JDK we use when building the project, and it is mainly
to avoid known bugs in the toolchain.
The resulting binaries should still be compatible with Java 11.
At the same time, the commit skips "./gradlew test" checks for Java 11,
and we still execute tests with Java 11 via conformance.yml.
It would allow us to bump testing libraries as some of them require Java 17.
Signed-off-by: Vladimir Sitnikov <[email protected]>
Copy file name to clipboardExpand all lines: build-logic/build-parameters/build.gradle.kts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ buildParameters {
14
14
}
15
15
val projectName ="sigstore-java"
16
16
integer("jdkBuildVersion") {
17
-
defaultValue.set(17)
17
+
defaultValue.set(21)
18
18
mandatory.set(true)
19
19
description.set("JDK version to use for building $projectName. If the value is 0, then the current Java is used. (see https://docs.gradle.org/8.4/userguide/toolchains.html#sec:consuming)")
Copy file name to clipboardExpand all lines: settings.gradle.kts
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,14 @@
1
+
plugins {
2
+
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
3
+
}
4
+
1
5
rootProject.name ="sigstore-java-root"
2
6
7
+
if (JavaVersion.current() <JavaVersion.VERSION_21) {
8
+
throwUnsupportedOperationException("Please use Java 21+ for launching Gradle when building ${rootProject.name}, the current Java is ${JavaVersion.current().majorVersion}. "+
9
+
"If you want to execute tests with a different Java version, use -PjdkTestVersion=${JavaVersion.current().majorVersion}")
0 commit comments