Skip to content

Add missing version-ranges to implicit imports of tycho.surefire.junit5#5526

Merged
HannesWell merged 1 commit into
eclipse-tycho:mainfrom
HannesWell:version-ranges-for-junit5-imports
Oct 25, 2025
Merged

Add missing version-ranges to implicit imports of tycho.surefire.junit5#5526
HannesWell merged 1 commit into
eclipse-tycho:mainfrom
HannesWell:version-ranges-for-junit5-imports

Conversation

@HannesWell

Copy link
Copy Markdown
Member

Without them Junit-6 bundles are automatically added to the test-runtime, even if the tested project actually only depends on junit-5 packages/bundles.
The only way to prevent it, was to add implicitly required platform and engine bundles explicitly to the test projects.

Without them Junit-6 bundles are automatically added to the
test-runtime, even if the tested project actually only depends on
junit-5 packages/bundles.
The only way to prevent it, was to add implicitly required platform and
engine bundles explicitly to the test projects.
@HannesWell HannesWell enabled auto-merge (rebase) October 25, 2025 14:28
HannesWell added a commit to HannesWell/eclipse.pde that referenced this pull request Oct 25, 2025
After a bug fix in Tycho it's not necessary anymore to specify the
complete set of junit bundles explicitly, in order to ensure that
JUnit-6 bundles are not present:
- eclipse-tycho/tycho#5526

This reverts most of the workarounds from
- eclipse-pde#2004
- eclipse-pde#2054
@HannesWell HannesWell merged commit 7e7ede6 into eclipse-tycho:main Oct 25, 2025
15 checks passed
@HannesWell HannesWell deleted the version-ranges-for-junit5-imports branch October 25, 2025 15:43
@eclipse-tycho-bot

Copy link
Copy Markdown

💚 All backports created successfully

Status Branch Result
tycho-5.0.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

HannesWell added a commit to HannesWell/eclipse.platform.releng.aggregator that referenced this pull request Oct 25, 2025
This makes the fix to not mix JUnit-5 and JUnit-6 bundles in a
test-runtime, if both are in the target-platform but only JUnit-5 is
actually referenced:
- eclipse-tycho/tycho#5526
iloveeclipse pushed a commit to eclipse-platform/eclipse.platform.releng.aggregator that referenced this pull request Oct 26, 2025
This makes the fix to not mix JUnit-5 and JUnit-6 bundles in a
test-runtime, if both are in the target-platform but only JUnit-5 is
actually referenced:
- eclipse-tycho/tycho#5526
HannesWell added a commit to HannesWell/eclipse.pde that referenced this pull request Oct 26, 2025
After a bug fix in Tycho it's not necessary anymore to specify the
complete set of junit bundles explicitly, in order to ensure that
JUnit-6 bundles are not present:
- eclipse-tycho/tycho#5526

This reverts most of the workarounds from
- eclipse-pde#2004
- eclipse-pde#2054
HannesWell added a commit to HannesWell/eclipse.pde that referenced this pull request Oct 26, 2025
After a bug fix in Tycho it's not necessary anymore to specify the
complete set of junit bundles explicitly, in order to ensure that
JUnit-6 bundles are not present:
- eclipse-tycho/tycho#5526

This reverts most of the workarounds from
- eclipse-pde#2004
- eclipse-pde#2054
HannesWell added a commit to eclipse-pde/eclipse.pde that referenced this pull request Oct 27, 2025
After a bug fix in Tycho it's not necessary anymore to specify the
complete set of junit bundles explicitly, in order to ensure that
JUnit-6 bundles are not present:
- eclipse-tycho/tycho#5526

This reverts most of the workarounds from
- #2004
- #2054
trancexpress pushed a commit to trancexpress/eclipse.pde that referenced this pull request Nov 10, 2025
After a bug fix in Tycho it's not necessary anymore to specify the
complete set of junit bundles explicitly, in order to ensure that
JUnit-6 bundles are not present:
- eclipse-tycho/tycho#5526

This reverts most of the workarounds from
- eclipse-pde#2004
- eclipse-pde#2054
amelodev pushed a commit to amelodev/eclipse.pde that referenced this pull request Nov 13, 2025
After a bug fix in Tycho it's not necessary anymore to specify the
complete set of junit bundles explicitly, in order to ensure that
JUnit-6 bundles are not present:
- eclipse-tycho/tycho#5526

This reverts most of the workarounds from
- eclipse-pde#2004
- eclipse-pde#2054
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants