Replies: 1 comment
-
I will state the alternatives I see as viable to start the discussion:
For reference, all the usages of the flag in the community are on the following link: https://github.com/search?q=%22-H%3AServiceLoaderFeatureExcludeServices%3D%22&type=code&p=1 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As recently discussed with @vjovanov, I would like to target a developer experience where we don't have any warning anymore when building native application with Spring Boot 4 to be released end of the year. The main blocker identified is this one:
I think this feature that allows us to ignore some service loader services is mandatory as we don't use build time init (following GraalVM best practices), but we need such mechanism to cut the reachability of some code (here ByteBuddy Hibernate support).
That said, we are totally open to specify it with something else than the current experimental expert undocumented command line flag, could be some other JSON based configuration, a GraalVM feature, or something else. Also we are going to use a Java 25 baseline for native in Spring Framework 7 so my hope is that we can provide this warning-free experience in one of the GraalVM for JDK 25 update (if too late for the initial launch).
Could we discuss a better way to enable this feature and move forward on making it available in GraalVM for JDK 25? Would be reassuring both from a GraalVM and Spring perspective to have a warning free experience out of the box with Spring Boot.
Beta Was this translation helpful? Give feedback.
All reactions