Repository navigation
Fix optional JUnit dependency resolution in Maven native tests - #935
Merged
Merged
Conversation
jvukicev
force-pushed
the
rhei-optional-deps/issue-756
branch
from
June 18, 2026 14:05
52baa57 to
a49c969
Compare
jvukicev
marked this pull request as ready for review
July 2, 2026 10:48
jvukicev
force-pushed
the
rhei-optional-deps/issue-756
branch
from
July 2, 2026 11:47
a49c969 to
98ea3d8
Compare
jvukicev
force-pushed
the
rhei-optional-deps/issue-756
branch
from
July 15, 2026 12:10
98ea3d8 to
5ae00fd
Compare
vjovanov
reviewed
Jul 16, 2026
| import org.graalvm.buildtools.maven.AbstractGraalVMMavenFunctionalTest | ||
| import spock.lang.Issue | ||
|
|
||
| class OptionalJUnitDependenciesFunctionalTest extends AbstractGraalVMMavenFunctionalTest { |
Contributor
Author
There was a problem hiding this comment.
Added in 543d05a. The regression test now cites §FS-native-tests.1 directly above the test method.
vjovanov
previously approved these changes
Jul 16, 2026
vjovanov
approved these changes
Jul 16, 2026
mergify Bot
added a commit
to robfrank/linklift
that referenced
this pull request
Jul 27, 2026
….4 to 1.1.6 [skip ci] Bumps [org.graalvm.buildtools:native-maven-plugin](https://github.com/graalvm/native-build-tools) from 1.1.4 to 1.1.6. Release notes *Sourced from [org.graalvm.buildtools:native-maven-plugin's releases](https://github.com/graalvm/native-build-tools/releases).* > 1.1.6 > ----- > > What's Changed > -------------- > > * Prefer GraalVM's Java when running with agent by [`@vjovanov`](https://github.com/vjovanov) in [graalvm/native-build-tools#833](https://redirect.github.com/graalvm/native-build-tools/pull/833) > * Make Maven agent execution ID configurable by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#933](https://redirect.github.com/graalvm/native-build-tools/pull/933) > * Fix optional JUnit dependency resolution in Maven native tests by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#935](https://redirect.github.com/graalvm/native-build-tools/pull/935) > * Log selected Maven metadata repository by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#936](https://redirect.github.com/graalvm/native-build-tools/pull/936) > * Fix Maven test agent paths with spaces by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#934](https://redirect.github.com/graalvm/native-build-tools/pull/934) > * Log Gradle agent output directory by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#937](https://redirect.github.com/graalvm/native-build-tools/pull/937) > * Clarify JUnit launcher alignment for Maven native tests by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#938](https://redirect.github.com/graalvm/native-build-tools/pull/938) > * Fix custom Gradle binary classpath wiring by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#939](https://redirect.github.com/graalvm/native-build-tools/pull/939) > * Document Maven native test output directories by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#941](https://redirect.github.com/graalvm/native-build-tools/pull/941) > * Fix Gradle agent toolchain detection by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#943](https://redirect.github.com/graalvm/native-build-tools/pull/943) > * Fix Gradle metadata repository service scoping by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#942](https://redirect.github.com/graalvm/native-build-tools/pull/942) > * Release 1.1.5 by [`@graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#972](https://redirect.github.com/graalvm/native-build-tools/pull/972) > * Fix Groovy agent predicate closures by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#959](https://redirect.github.com/graalvm/native-build-tools/pull/959) > * Make Maven skip apply to all goals by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#960](https://redirect.github.com/graalvm/native-build-tools/pull/960) > * Document Maven resource configuration by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#965](https://redirect.github.com/graalvm/native-build-tools/pull/965) > * Fix layered image configuration cache test by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#958](https://redirect.github.com/graalvm/native-build-tools/pull/958) > * Respect build-tool console colors for Native Image output by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#961](https://redirect.github.com/graalvm/native-build-tools/pull/961) > * Normalize platform-dependent resource and test paths by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#981](https://redirect.github.com/graalvm/native-build-tools/pull/981) > * Bump version to 1.1.6-SNAPSHOT by [`@graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#990](https://redirect.github.com/graalvm/native-build-tools/pull/990) > * Add class introduced in 6.1 by [`@marcphilipp`](https://github.com/marcphilipp) in [graalvm/native-build-tools#867](https://redirect.github.com/graalvm/native-build-tools/pull/867) > * Bump org.apache.commons:commons-lang3 from 3.12.0 to 3.18.0 in /samples/java-application-with-tests by [`@dependabot`](https://github.com/dependabot)[bot] in [graalvm/native-build-tools#823](https://redirect.github.com/graalvm/native-build-tools/pull/823) > * Fix order of access filter files by moving default to the start by [`@ArloL`](https://github.com/ArloL) in [graalvm/native-build-tools#875](https://redirect.github.com/graalvm/native-build-tools/pull/875) > * Allow the test classes directory to be configured for the NativeTestMojo by [`@thegridman`](https://github.com/thegridman) in [graalvm/native-build-tools#757](https://redirect.github.com/graalvm/native-build-tools/pull/757) > * Bump org.apache.commons:commons-lang3 from 3.12.0 to 3.18.0 in /samples/java-application-with-tests-in-src-main by [`@dependabot`](https://github.com/dependabot)[bot] in [graalvm/native-build-tools#993](https://redirect.github.com/graalvm/native-build-tools/pull/993) > * Preserve test runner argLine when configuring agent by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#992](https://redirect.github.com/graalvm/native-build-tools/pull/992) > * Update reachability metadata to 1.0.7 by [`@graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#995](https://redirect.github.com/graalvm/native-build-tools/pull/995) > > New Contributors > ---------------- > > * [`@ArloL`](https://github.com/ArloL) made their first contribution in [graalvm/native-build-tools#875](https://redirect.github.com/graalvm/native-build-tools/pull/875) > * [`@thegridman`](https://github.com/thegridman) made their first contribution in [graalvm/native-build-tools#757](https://redirect.github.com/graalvm/native-build-tools/pull/757) > > **Full Changelog**: <graalvm/native-build-tools@1.1.5...1.1.6> > > 1.1.5 > ----- > > What's Changed > -------------- > > * Release 1.1.4 by [`@graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#963](https://redirect.github.com/graalvm/native-build-tools/pull/963) > * Bump version to 1.1.5-SNAPSHOT by [`@graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#964](https://redirect.github.com/graalvm/native-build-tools/pull/964) > * Fix Maven native test resource handling by [`@alvarosanchez`](https://github.com/alvarosanchez) in [graalvm/native-build-tools#966](https://redirect.github.com/graalvm/native-build-tools/pull/966) > * Support autodetected Jupiter extensions in native tests by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#919](https://redirect.github.com/graalvm/native-build-tools/pull/919) > * Document Gradle tracing agent default mode by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#922](https://redirect.github.com/graalvm/native-build-tools/pull/922) > * Fix Gradle nativeTest test resource detection by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#929](https://redirect.github.com/graalvm/native-build-tools/pull/929) > * Document skipNativeBuildForPom for Maven aggregators by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#921](https://redirect.github.com/graalvm/native-build-tools/pull/921) > * Fix custom native test classpath wiring by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#925](https://redirect.github.com/graalvm/native-build-tools/pull/925) > * Make build infrastructure runnable on newer JDKs by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#928](https://redirect.github.com/graalvm/native-build-tools/pull/928) > * Clarify buildArgs option entries by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#931](https://redirect.github.com/graalvm/native-build-tools/pull/931) > * Update reachability metadata to 1.0.6 by [`@graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#971](https://redirect.github.com/graalvm/native-build-tools/pull/971) ... (truncated) Commits * [`7a6414c`](graalvm/native-build-tools@7a6414c) Release 1.1.6 * [`e95114f`](graalvm/native-build-tools@e95114f) Merge pull request [#995](https://redirect.github.com/graalvm/native-build-tools/issues/995) from graalvm/update-metadata-to-1.0.7 * [`b22ad4c`](graalvm/native-build-tools@b22ad4c) Update reachability metadata to 1.0.7 * [`bdcffba`](graalvm/native-build-tools@bdcffba) Preserve test runner argLine when configuring agent ([#992](https://redirect.github.com/graalvm/native-build-tools/issues/992)) * [`f817689`](graalvm/native-build-tools@f817689) Bump org.apache.commons:commons-lang3 from 3.12.0 to 3.18.0 in /samples/java-... * [`4e52742`](graalvm/native-build-tools@4e52742) Allow the test classes directory to be configured for the NativeTestMojo ([#757](https://redirect.github.com/graalvm/native-build-tools/issues/757)) * [`2491c2c`](graalvm/native-build-tools@2491c2c) Fix order of access filter files by moving default to the start ([#875](https://redirect.github.com/graalvm/native-build-tools/issues/875)) * [`dd2072b`](graalvm/native-build-tools@dd2072b) Bump org.apache.commons:commons-lang3 from 3.12.0 to 3.18.0 in /samples/java-... * [`e10adf0`](graalvm/native-build-tools@e10adf0) Add class introduced in 6.1 * [`53a3319`](graalvm/native-build-tools@53a3319) Bump version to 1.1.6-SNAPSHOT ([#990](https://redirect.github.com/graalvm/native-build-tools/issues/990)) * Additional commits viewable in [compare view](graalvm/native-build-tools@1.1.4...1.1.6) [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- Dependabot commands and options You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
mergify Bot
added a commit
to ArcadeData/arcadedb
that referenced
this pull request
Jul 29, 2026
…0.6 to 1.1.6 [skip ci] Bumps [org.graalvm.buildtools:native-maven-plugin](https://github.com/graalvm/native-build-tools) from 0.10.6 to 1.1.6. Release notes *Sourced from [org.graalvm.buildtools:native-maven-plugin's releases](https://github.com/graalvm/native-build-tools/releases).* > 1.1.6 > ----- > > What's Changed > -------------- > > * Prefer GraalVM's Java when running with agent by [`@vjovanov`](https://github.com/vjovanov) in [graalvm/native-build-tools#833](https://redirect.github.com/graalvm/native-build-tools/pull/833) > * Make Maven agent execution ID configurable by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#933](https://redirect.github.com/graalvm/native-build-tools/pull/933) > * Fix optional JUnit dependency resolution in Maven native tests by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#935](https://redirect.github.com/graalvm/native-build-tools/pull/935) > * Log selected Maven metadata repository by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#936](https://redirect.github.com/graalvm/native-build-tools/pull/936) > * Fix Maven test agent paths with spaces by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#934](https://redirect.github.com/graalvm/native-build-tools/pull/934) > * Log Gradle agent output directory by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#937](https://redirect.github.com/graalvm/native-build-tools/pull/937) > * Clarify JUnit launcher alignment for Maven native tests by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#938](https://redirect.github.com/graalvm/native-build-tools/pull/938) > * Fix custom Gradle binary classpath wiring by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#939](https://redirect.github.com/graalvm/native-build-tools/pull/939) > * Document Maven native test output directories by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#941](https://redirect.github.com/graalvm/native-build-tools/pull/941) > * Fix Gradle agent toolchain detection by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#943](https://redirect.github.com/graalvm/native-build-tools/pull/943) > * Fix Gradle metadata repository service scoping by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#942](https://redirect.github.com/graalvm/native-build-tools/pull/942) > * Release 1.1.5 by [`@graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#972](https://redirect.github.com/graalvm/native-build-tools/pull/972) > * Fix Groovy agent predicate closures by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#959](https://redirect.github.com/graalvm/native-build-tools/pull/959) > * Make Maven skip apply to all goals by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#960](https://redirect.github.com/graalvm/native-build-tools/pull/960) > * Document Maven resource configuration by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#965](https://redirect.github.com/graalvm/native-build-tools/pull/965) > * Fix layered image configuration cache test by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#958](https://redirect.github.com/graalvm/native-build-tools/pull/958) > * Respect build-tool console colors for Native Image output by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#961](https://redirect.github.com/graalvm/native-build-tools/pull/961) > * Normalize platform-dependent resource and test paths by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#981](https://redirect.github.com/graalvm/native-build-tools/pull/981) > * Bump version to 1.1.6-SNAPSHOT by [`@graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#990](https://redirect.github.com/graalvm/native-build-tools/pull/990) > * Add class introduced in 6.1 by [`@marcphilipp`](https://github.com/marcphilipp) in [graalvm/native-build-tools#867](https://redirect.github.com/graalvm/native-build-tools/pull/867) > * Bump org.apache.commons:commons-lang3 from 3.12.0 to 3.18.0 in /samples/java-application-with-tests by [`@dependabot`](https://github.com/dependabot)[bot] in [graalvm/native-build-tools#823](https://redirect.github.com/graalvm/native-build-tools/pull/823) > * Fix order of access filter files by moving default to the start by [`@ArloL`](https://github.com/ArloL) in [graalvm/native-build-tools#875](https://redirect.github.com/graalvm/native-build-tools/pull/875) > * Allow the test classes directory to be configured for the NativeTestMojo by [`@thegridman`](https://github.com/thegridman) in [graalvm/native-build-tools#757](https://redirect.github.com/graalvm/native-build-tools/pull/757) > * Bump org.apache.commons:commons-lang3 from 3.12.0 to 3.18.0 in /samples/java-application-with-tests-in-src-main by [`@dependabot`](https://github.com/dependabot)[bot] in [graalvm/native-build-tools#993](https://redirect.github.com/graalvm/native-build-tools/pull/993) > * Preserve test runner argLine when configuring agent by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#992](https://redirect.github.com/graalvm/native-build-tools/pull/992) > * Update reachability metadata to 1.0.7 by [`@graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#995](https://redirect.github.com/graalvm/native-build-tools/pull/995) > > New Contributors > ---------------- > > * [`@ArloL`](https://github.com/ArloL) made their first contribution in [graalvm/native-build-tools#875](https://redirect.github.com/graalvm/native-build-tools/pull/875) > * [`@thegridman`](https://github.com/thegridman) made their first contribution in [graalvm/native-build-tools#757](https://redirect.github.com/graalvm/native-build-tools/pull/757) > > **Full Changelog**: <graalvm/native-build-tools@1.1.5...1.1.6> > > 1.1.5 > ----- > > What's Changed > -------------- > > * Release 1.1.4 by [`@graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#963](https://redirect.github.com/graalvm/native-build-tools/pull/963) > * Bump version to 1.1.5-SNAPSHOT by [`@graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#964](https://redirect.github.com/graalvm/native-build-tools/pull/964) > * Fix Maven native test resource handling by [`@alvarosanchez`](https://github.com/alvarosanchez) in [graalvm/native-build-tools#966](https://redirect.github.com/graalvm/native-build-tools/pull/966) > * Support autodetected Jupiter extensions in native tests by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#919](https://redirect.github.com/graalvm/native-build-tools/pull/919) > * Document Gradle tracing agent default mode by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#922](https://redirect.github.com/graalvm/native-build-tools/pull/922) > * Fix Gradle nativeTest test resource detection by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#929](https://redirect.github.com/graalvm/native-build-tools/pull/929) > * Document skipNativeBuildForPom for Maven aggregators by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#921](https://redirect.github.com/graalvm/native-build-tools/pull/921) > * Fix custom native test classpath wiring by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#925](https://redirect.github.com/graalvm/native-build-tools/pull/925) > * Make build infrastructure runnable on newer JDKs by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#928](https://redirect.github.com/graalvm/native-build-tools/pull/928) > * Clarify buildArgs option entries by [`@jormundur00`](https://github.com/jormundur00) in [graalvm/native-build-tools#931](https://redirect.github.com/graalvm/native-build-tools/pull/931) > * Update reachability metadata to 1.0.6 by [`@graalvmbot`](https://github.com/graalvmbot) in [graalvm/native-build-tools#971](https://redirect.github.com/graalvm/native-build-tools/pull/971) ... (truncated) Commits * [`7a6414c`](graalvm/native-build-tools@7a6414c) Release 1.1.6 * [`e95114f`](graalvm/native-build-tools@e95114f) Merge pull request [#995](https://redirect.github.com/graalvm/native-build-tools/issues/995) from graalvm/update-metadata-to-1.0.7 * [`b22ad4c`](graalvm/native-build-tools@b22ad4c) Update reachability metadata to 1.0.7 * [`bdcffba`](graalvm/native-build-tools@bdcffba) Preserve test runner argLine when configuring agent ([#992](https://redirect.github.com/graalvm/native-build-tools/issues/992)) * [`f817689`](graalvm/native-build-tools@f817689) Bump org.apache.commons:commons-lang3 from 3.12.0 to 3.18.0 in /samples/java-... * [`4e52742`](graalvm/native-build-tools@4e52742) Allow the test classes directory to be configured for the NativeTestMojo ([#757](https://redirect.github.com/graalvm/native-build-tools/issues/757)) * [`2491c2c`](graalvm/native-build-tools@2491c2c) Fix order of access filter files by moving default to the start ([#875](https://redirect.github.com/graalvm/native-build-tools/issues/875)) * [`dd2072b`](graalvm/native-build-tools@dd2072b) Bump org.apache.commons:commons-lang3 from 3.12.0 to 3.18.0 in /samples/java-... * [`e10adf0`](graalvm/native-build-tools@e10adf0) Add class introduced in 6.1 * [`53a3319`](graalvm/native-build-tools@53a3319) Bump version to 1.1.6-SNAPSHOT ([#990](https://redirect.github.com/graalvm/native-build-tools/issues/990)) * Additional commits viewable in [compare view](graalvm/native-build-tools@0.10.6...1.1.6) [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- Dependabot commands and options You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #756
What changed
This PR fixes Maven native test dependency inference for optional JUnit dependencies.
Before this change, optional test-scoped JUnit dependencies resolved by Maven could be dropped when Native Build Tools inferred missing JUnit Platform dependencies for
native:test, especially when versions came from dependency management. That could lead to versionless-artifact failures or missing launcher support on the native test classpath.After this change, Native Build Tools infers missing JUnit Platform dependencies from Maven's resolved test graph and preserves optional test-scoped dependencies that Maven already resolved for the current project.
Why
Users expect
native:testto follow Maven's resolved test dependency graph. Without this fix, valid Maven setups with optional JUnit dependencies and BOM-managed versions could fail even though Maven had already resolved the right test classpath.Example
Before:
A project with optional
junit-jupiterandjunit-platform-launcherdependencies managed by the JUnit BOM could hit a versionless-artifact failure while Native Build Tools reconstructed dependencies from raw model entries.After:
The same setup uses Maven's resolved test graph, keeps the optional dependencies that were actually resolved, and includes
junit-platform-launcheron the dry-run native test classpath.Implementation summary
Validation
grund fmt . --marker --checkgit diff --checkgrund maven/FS-maven-native-tests --tocgrund refs maven/FS-maven-native-tests --summaryNativeTestMojo.java, and the new functional test../gradlew :native-maven-plugin:inspections --no-daemon./gradlew :native-maven-plugin:test --no-daemon./gradlew :native-maven-plugin:functionalTest --no-daemon --fail-fast --tests org.graalvm.buildtools.maven.issues.OptionalJUnitDependenciesFunctionalTest