Skip to content

Deprecate biz.aQute.tester and biz.aQute.junit #6645

Open

Description

@kriegfrj

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.

Thoughts/comments welcome.

Activity

  1. chrisrueger commented on Jul 10, 2025

    @chrisrueger
    Contributor

    @stbischof any thoughts on that?

  2. stbischof commented on Jul 10, 2025

    @stbischof
    Contributor

    Inam absolutely happy with this plan.

    Had the same thoughts on the Tester.

  3. chrisrueger commented on Jul 16, 2025

    @chrisrueger
    Contributor

    Cutting old ties seems like a good idea, given the complications (#6651) we have with different JUnit versions.

  4. synesty-cr commented on Aug 13, 2025

    @synesty-cr
    • 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.

  5. kriegfrj commented on Aug 13, 2025

    @kriegfrj
    ContributorAuthor

    I don't think there is a standard way to "deprecate" a bundle. I think:

    • Mention it in README;
    • Perhaps have these testers log a warning at the start of their run loop.
  6. chrisrueger commented on Jan 3, 2026

    @chrisrueger
    Contributor

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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