Skip to content

Commit ed42ed7

Browse files
Enable GraalVM native Paketo Builder Tests on Java 22
Closes gh-40639
1 parent 92f7414 commit ed42ed7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

spring-boot-system-tests/spring-boot-image-tests/src/systemTest/java/org/springframework/boot/image/paketo/PaketoBuilderTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@ void plainWarApp() throws Exception {
300300
}
301301

302302
@Test
303-
@EnabledForJreRange(max = JRE.JAVA_17)
304303
void nativeApp() throws Exception {
305304
this.gradleBuild.expectDeprecationMessages("uses or overrides a deprecated API");
306305
this.gradleBuild.expectDeprecationMessages("has been deprecated and marked for removal");

spring-boot-system-tests/spring-boot-image-tests/src/systemTest/resources/org/springframework/boot/image/paketo/PaketoBuilderTests-nativeApp.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,7 @@ bootJar {
3434
}
3535

3636
bootBuildImage {
37-
environment = ['BP_NATIVE_IMAGE': 'true']
37+
environment = ['BP_NATIVE_IMAGE': 'true',
38+
//see https://github.com/paketo-buildpacks/native-image/issues/321
39+
'BP_NATIVE_IMAGE_BUILD_ARGUMENTS': '-H:-AddAllFileSystemProviders']
3840
}

0 commit comments

Comments
 (0)