graalvm / native-build-tools

Native-image plugins for various build tools
https://graalvm.github.io/native-build-tools/
Other
366 stars 57 forks source link

`Maven Plugin` Select Dependency Hint Metadata More Intelligently - Spring Boot 3 Hibernate Apps Currently Broken #430

Open matthenry87 opened 1 year ago

matthenry87 commented 1 year ago

Describe the bug Metadata was just added for org.hibernate.orm Hibernate Core 6.2.0.Final, but Spring Boot 3 apps are on 6.1.x. Because the only other metadata present is for 6.1.1.Final, it selects the latest version available. As a result, there are a lot of missing hints and Spring Boot 3 apps no longer work as-is.

Also see https://github.com/oracle/graalvm-reachability-metadata/issues/273

To Reproduce

Create and build a Spring Boot 3 native image application that uses Hibernate.

Expected behavior NBT Maven plugin should not select metadata for a higher minor version when there is one available for the current minor version, even if it's for a lower version.

sdeleuze commented 1 year ago

I think this relates to https://github.com/oracle/graalvm-reachability-metadata/issues/62.