You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deprecate biz.aQute.tester and biz.aQute.junit #6645
I think at some point we should seriously consider deprecating the above two modules.
biz.aQute.tester.junit-platform has been available for some years now. All new tests should be using it.
Support for JUnit 3 & 4 tests is still available using biz.aQute.tester.junit-platform together with junit-vintage-engine (though users should also consider upgrading to Jupiter for all tests too).
Maintaining these two packages is an extra overhead (though admittedly a small one) that our community's limited resources probably could do without.
Dispensing with these and the associated tests which would speed up the build a bit too.
In hindsight, probably the best time to do this would have been when we moved the baseline from Java 8 to Java 17. But it is not too late to do it now.
Proposed roadmap would look something like this:
7.2.0 - deprecate biz.aQute.tester and biz.aQute.junit for removal
7.2.x and higher - no more bug fixes for these two bundles. Users that run into bugs that can't be worked around will need to migrate to biz.aQute.tester.junit-platform, and if that by itself does not fix their problem we will will fix biz.aQute.tester.junit-platform instead.
8.0.0:
Remove biz.aQute.tester and biz.aQute.junit
Make biz.aQute.tester.junit-platform the default for the -tester directive.
7.2.0 - deprecate biz.aQute.tester and biz.aQute.junit for removal
@kriegfrj How should this deprecation happen in your opinion? Just mention it in a README / bnd.bnd in this bundle and in the release notes? Basically: how to mark a bundle deprecated. I know this for java methods, but how here?
Are you willing to contribute a PR. Especially since we are heading towards 7.2.0 release, I opened #6756 to collect stuff which we at least "mark" for deprecation.
Activity
chrisrueger commentedon Jul 10, 2025
@stbischof any thoughts on that?
stbischof commentedon Jul 10, 2025
Inam absolutely happy with this plan.
Had the same thoughts on the Tester.
chrisrueger commentedon Jul 16, 2025
Cutting old ties seems like a good idea, given the complications (#6651) we have with different JUnit versions.
synesty-cr commentedon Aug 13, 2025
@kriegfrj How should this deprecation happen in your opinion? Just mention it in a
README/bnd.bndin this bundle and in the release notes? Basically: how to mark a bundle deprecated. I know this for java methods, but how here?Are you willing to contribute a PR. Especially since we are heading towards 7.2.0 release, I opened #6756 to collect stuff which we at least "mark" for deprecation.
kriegfrj commentedon Aug 13, 2025
I don't think there is a standard way to "deprecate" a bundle. I think:
chrisrueger commentedon Jan 3, 2026
I created #7037 where I mention the deprecation in the readme and will add it to the release notes from now on. I also added it to https://github.com/bndtools/bnd/wiki/WIP-ideas-%E2%80%90-bnd-8.0.0-breaking-changes