Skip to content

Commit 2c4fb5b

Browse files
committed
Merge branch '3.2.x'
2 parents 6621f99 + 0f6b351 commit 2c4fb5b

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-classic-tests/src/intTest/java/org/springframework/boot/loader/LoaderIntegrationTests.java

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -82,6 +82,7 @@ static Stream<JavaRuntime> javaRuntimes() {
8282
javaRuntimes.add(JavaRuntime.openJdk(JavaVersion.SEVENTEEN));
8383
javaRuntimes.add(JavaRuntime.openJdk(JavaVersion.TWENTY_ONE));
8484
javaRuntimes.add(JavaRuntime.oracleJdk17());
85+
javaRuntimes.add(JavaRuntime.openJdkEarlyAccess(JavaVersion.TWENTY_TWO));
8586
return javaRuntimes.stream().filter(JavaRuntime::isCompatible);
8687
}
8788

@@ -112,6 +113,13 @@ public String toString() {
112113
return this.name;
113114
}
114115

116+
static JavaRuntime openJdkEarlyAccess(JavaVersion version) {
117+
String imageVersion = version.toString();
118+
DockerImageName image = DockerImageName.parse("openjdk:%s-ea-jdk".formatted(imageVersion));
119+
return new JavaRuntime("OpenJDK Early Access " + imageVersion, version,
120+
() -> new GenericContainer<>(image));
121+
}
122+
115123
static JavaRuntime openJdk(JavaVersion version) {
116124
String imageVersion = version.toString();
117125
DockerImageName image = DockerImageName.parse("bellsoft/liberica-openjdk-debian:" + imageVersion);

spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/src/intTest/java/org/springframework/boot/loader/LoaderIntegrationTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -108,9 +108,9 @@ private File findJarFile(String name, String classifier) {
108108
static Stream<JavaRuntime> javaRuntimes() {
109109
List<JavaRuntime> javaRuntimes = new ArrayList<>();
110110
javaRuntimes.add(JavaRuntime.openJdk(JavaVersion.SEVENTEEN));
111-
javaRuntimes.add(JavaRuntime.openJdk(JavaVersion.TWENTY));
111+
javaRuntimes.add(JavaRuntime.openJdk(JavaVersion.TWENTY_ONE));
112112
javaRuntimes.add(JavaRuntime.oracleJdk17());
113-
javaRuntimes.add(JavaRuntime.openJdkEarlyAccess(JavaVersion.TWENTY_ONE));
113+
javaRuntimes.add(JavaRuntime.openJdkEarlyAccess(JavaVersion.TWENTY_TWO));
114114
return javaRuntimes.stream().filter(JavaRuntime::isCompatible);
115115
}
116116

0 commit comments

Comments
 (0)