oracle / graalvm-reachability-metadata

Repository which contains community-driven collection of GraalVM reachability metadata for open-source libraries.
Creative Commons Zero v1.0 Universal
356 stars 85 forks source link

Add support for org.flywaydb:flyway-core:10.0.0 #424

Open wetted opened 10 months ago

wetted commented 10 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

The graalvm-reachability-metadata supports org.flywaydb 9.0.1, but is broken for flyway 10.0.0 https://github.com/oracle/graalvm-reachability-metadata/tree/master/metadata/org.flywaydb/flyway-core

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

  | Caused by: org.graalvm.nativeimage.MissingReflectionRegistrationError: The program tried to reflectively invoke method public java.lang.String org.flywaydb.core.internal.command.clean.CleanModeConfigurationExtension.getNamespace() without it being registered for runtime reflection. Add public java.lang.String org.flywaydb.core.internal.command.clean.CleanModeConfigurationExtension.getNamespace() to the reflection metadata to solve this problem. See https://www.graalvm.org/latest/reference-manual/native-image/metadata/#reflection for help. |   https://github.com/micronaut-projects/micronaut-flyway/actions/runs/6935025730/job/18864351069?pr=472

mhalbritter commented 3 weeks ago

Flyway fails with Spring Boot 3.4.0-M2 which uses Flyway 10.17.1:

Caused by: org.graalvm.nativeimage.MissingReflectionRegistrationError: The program tried to reflectively invoke method public boolean org.flywaydb.core.internal.publishing.PublishingConfigurationExtension.isPublishResult() without it being registered for runtime reflection. Add public boolean org.flywaydb.core.internal.publishing.PublishingConfigurationExtension.isPublishResult() to the reflection metadata to solve this problem. See https://www.graalvm.org/latest/reference-manual/native-image/metadata/#reflection for help.
at org.graalvm.nativeimage.builder/com.oracle.svm.core.reflect.MissingReflectionRegistrationUtils.forQueriedOnlyExecutable(MissingReflectionRegistrationUtils.java:72)
at java.base@21.0.3/java.lang.reflect.Method.acquireMethodAccessor(Method.java:77)
mhalbritter commented 2 weeks ago

I've added metadata for Flyway 10.17.1 in #531.