Spring Boot currently adds --allow-incomplete-classpath to native-image parameters here. This was needed as of GraalVM 22.0 but as of GraalVM 22.1 this is now the default and that produces the following warning for each build:
[INFO] Executing: /home/seb/.sdkman/candidates/java/graalvm-dev/bin/native-image @/tmp/native-image4522614256135148135args
Warning: Using a deprecated option --allow-incomplete-classpath from 'META-INF/native-image/com.example/scheduling-tasks/native-image.properties' in 'file:///home/seb/workspace/spring-native/samples/scheduling-tasks/target/scheduling-tasks-0.0.1-SNAPSHOT.jar'. Allowing an incomplete classpath is now the default. Use --link-at-build-time to report linking errors at image build time for a class or package.
My proposal is to not add anymore this --allow-incomplete-classpath parameter and to document that Spring Boot support GraalVM 22.1+ (could be even checked via native-image --version maybe).
Comment From: mhalbritter
I've opened https://github.com/spring-projects/spring-boot/issues/31606 for documenting the minimum version.