Skip to content

biz.aQute.tester.junit-platform conflicts with Junit 6 #7052

@holgerfriedrich

Description

@holgerfriedrich

Junit 6 changed the versioning scheme for the junit-platform packages to be in sync with junit-jupiter, i.e. from 1.x to 6.x.
https://github.com/junit-team/junit-framework/wiki/Upgrading-to-JUnit-6.0#new-versioning-scheme

This conflicts with the requirement <2.0.0 in bnd-resolver-maven-plugin.

[ERROR] Failed to execute goal biz.aQute.bnd:bnd-resolver-maven-plugin:7.2.1:resolve (default) on project org.openhab.core.automation.tests: Unable to resolve <<INITIAL>>: missing requirement osgi.identity;filter:='(osgi.identity=biz.aQute.tester.junit-platform)' [caused by: Unable to resolve biz.aQute.tester.junit-platform version=7.2.1.202601121903: missing requirement osgi.wiring.package;filter:='(&(osgi.wiring.package=org.junit.platform.engine)(version>=1.10.0)(!(version>=2.0.0)))';osgi.wiring.package='org.junit.platform.engine'] 

Not sure if there are technical reasons not to allow Junit 6.
In case it is unnecessary, this restriction should be removed in next patch release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions