-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove native-image.properties from micrometer-core #4245
Comments
Thank you for bringing this to our attention. I believe this warning is something new since GraalVM 23 perhaps. It did not used to give such a warning. I checked with the latest patch of 22.3 (22.3.3) and it does not give a warning. It does indeed seem |
I did a little more digging in the documentation, and it looks like GraalVM 22.2 also mentions including the config, but it mentions |
Well it also mentions Digging through the code instead of the documentation I was able to track its presence all the way back to GraalVM 19.1. Probably GraalVM always detected |
Thank you for the investigation and reference. It sounds like we should be okay to remove our |
This is not needed because reflect-config.json will be picked up without being specified in native-image.properties. The configuration option used in native-image.properties causes a deprecation warning on the latest GraalVM native-image versions. Closes #4245
Please describe the feature request.
Remove
-H:ReflectionConfigurationResources=${.}/reflect-config.json
from native-image.properties file.The option should not be necessary for native-image to pick up the reflect-config.json file, while with this option included native builds using GraalVM for JDK 21 print the following warning:
The option is passed in https://github.com/micrometer-metrics/micrometer/blob/3513df3780ab2fe1119ec2f9a6099ddcff7e7544/micrometer-core/src/main/resources/META-INF/native-image/io.micrometer/micrometer-core/native-image.properties#L17C8-L17C68
Rationale
As noted in the warning the use of '-H:ReflectionConfigurationResources=` is experimental and should thus be avoided.
Additional context
Reproducer:
The text was updated successfully, but these errors were encountered: