mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Add CI for Java 27
Closes gh-51423
This commit is contained in:
@@ -27,6 +27,9 @@ jobs:
|
||||
toolchain: false
|
||||
- version: 26
|
||||
toolchain: true
|
||||
- version: 27
|
||||
toolchain: true
|
||||
early-access: true
|
||||
exclude:
|
||||
- os:
|
||||
name: Linux
|
||||
|
||||
+4
-3
@@ -37,9 +37,10 @@ class AotDocumentationTests {
|
||||
|
||||
@TestTemplate
|
||||
void applyNativeImagePlugin() {
|
||||
assertThat(this.gradleBuild.script(Examples.DIR + "aot/apply-native-image-plugin").build("tasks").getOutput())
|
||||
.contains("nativeCompile")
|
||||
.contains("aotClasses");
|
||||
assertThat(this.gradleBuild.expectDeprecationWarningsWithAtLeastVersion("9.7.0")
|
||||
.script(Examples.DIR + "aot/apply-native-image-plugin")
|
||||
.build("tasks")
|
||||
.getOutput()).contains("nativeCompile").contains("aotClasses");
|
||||
}
|
||||
|
||||
@TestTemplate
|
||||
|
||||
+2
-1
@@ -154,7 +154,8 @@ class LoaderIntegrationTests {
|
||||
javaRuntimes.add(JavaRuntime.openJdk(JavaVersion.TWENTY_THREE));
|
||||
javaRuntimes.add(JavaRuntime.openJdk(JavaVersion.TWENTY_FOUR));
|
||||
javaRuntimes.add(JavaRuntime.openJdk(JavaVersion.TWENTY_FIVE));
|
||||
javaRuntimes.add(JavaRuntime.openJdkEarlyAccess(JavaVersion.TWENTY_SIX));
|
||||
javaRuntimes.add(JavaRuntime.openJdk(JavaVersion.TWENTY_SIX));
|
||||
javaRuntimes.add(JavaRuntime.openJdkEarlyAccess(JavaVersion.TWENTY_SEVEN));
|
||||
return javaRuntimes.stream().filter(JavaRuntime::isCompatible);
|
||||
}
|
||||
|
||||
|
||||
+3
@@ -33,6 +33,9 @@ public final class GradleVersions {
|
||||
}
|
||||
|
||||
public static List<String> allCompatible() {
|
||||
if (isJavaVersion(JavaVersion.VERSION_27)) {
|
||||
return Arrays.asList("9.8.0-20260824065828+0000");
|
||||
}
|
||||
if (isJavaVersion(JavaVersion.VERSION_26)) {
|
||||
return Arrays.asList("9.4.0", GradleVersion.current().getVersion());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user