Expected behavior
Building native-images with neo4j-java-driver should succeed without warnings.
Actual behavior
Native builds print the following warning:
Warning: The option '-H:ReflectionConfigurationResources=META-INF/native-image/org.neo4j.driver/neo4j-java-driver/reflection-config.json' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
More info
The option is passed in
|
Args = -H:ReflectionConfigurationResources=${.}/reflection-config.json \ |
The reason this is required is because the configuration file is named reflection-config.json instead of reflect-config.json. Renaming the configuration file would result in GraalVM picking it up automatically without the need of passing -H:ReflectionConfigurationResources. See netty/netty#13596 for a PR fixing the same issue in Netty.
cc @michael-simons