Use Java 24 for native image system test

Upgrade to Java 24 for the native image system test to ensure that
the new rachability JSON is used.

See gh-45501
This commit is contained in:
Phillip Webb
2025-05-09 20:08:50 -07:00
parent 3ec75c3ace
commit 9473e690e5
2 changed files with 7 additions and 0 deletions

View File

@@ -309,6 +309,9 @@ class PaketoBuilderTests {
this.gradleBuild
.expectDeprecationMessages("has been deprecated. This is scheduled to be removed in Gradle 9.0");
this.gradleBuild.expectDeprecationMessages("upgrading_version_8.html#deprecated_access_to_convention");
// these deprecations are from native image buildpacks
this.gradleBuild.expectDeprecationMessages("Using a deprecated option --report-unsupported-elements-at-runtime",
"The option is deprecated and will be removed in the future.");
writeMainClass();
String imageName = "paketo-integration/" + this.gradleBuild.getProjectDir().getName();
ImageReference imageReference = ImageReference.of(ImageName.of(imageName));

View File

@@ -21,6 +21,10 @@ repositories {
spring.mavenRepositories()
}
tasks.named("bootBuildImage") {
environment["BP_JVM_VERSION"] = "24"
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web:{bootVersion}")
}