graalvm-reachability-metadata icon indicating copy to clipboard operation
graalvm-reachability-metadata copied to clipboard

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

Open wetted opened this issue 1 year ago • 2 comments

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.

  • add support for org.flywaydb:flyway-core:10.0.0
  • add support for org.flywaydb:flyway-sqlserver:10.0.0
  • add support for org.flywaydb:flyway-database-oracle:10.0.0
  • add support for org.flywaydb:flyway-database-postgresql:10.0.0

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

  • null

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

wetted avatar Nov 21 '23 15:11 wetted

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 [email protected]/java.lang.reflect.Method.acquireMethodAccessor(Method.java:77)

mhalbritter avatar Aug 30 '24 09:08 mhalbritter

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

mhalbritter avatar Sep 04 '24 11:09 mhalbritter