graalvm / native-build-tools

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

Native Image Maven Plugin should include provided dependencies for testing #601

Open graemerocher opened 3 weeks ago

graemerocher commented 3 weeks ago

Currently provided scope dependencies are not included in the native image build for JUnit 5 tests. This is inconsistent with the way mvn test works.

To Reproduce

Add a provided scope dependencies then build native image

Expected behavior

All provided scope dependencies should be on the native image classpath for tests (but NOT the native image classpath for runtime)