graalvm / native-build-tools

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

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

Open graemerocher opened 5 months ago

graemerocher commented 5 months 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)