Skip to content

Bump JUnit to 6.0.2#3722

Merged
snazy merged 2 commits intoapache:mainfrom
snazy:junit-6
Feb 12, 2026
Merged

Bump JUnit to 6.0.2#3722
snazy merged 2 commits intoapache:mainfrom
snazy:junit-6

Conversation

@snazy
Copy link
Member

@snazy snazy commented Feb 10, 2026

Since #3712 has been merged, we can bump JUnit to version 6.

@snazy
Copy link
Member Author

snazy commented Feb 10, 2026

Depends on #3614 due to the deprecation-changes (Quarkus 3.30 has JUnit 5, 3.31 has JUnit 6)

@snazy snazy marked this pull request as draft February 10, 2026 10:45
@snazy snazy marked this pull request as ready for review February 10, 2026 15:56
@snazy snazy requested a review from adutra February 10, 2026 16:01
ExtensionContext classCtx = classContext(context);
ExtensionContext.Store store = classCtx.getStore(NAMESPACE);
return store.getOrComputeIfAbsent(
return store.computeIfAbsent(
Copy link
Contributor

@dimas-b dimas-b Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this require downstream projects that want to reuse this extension to also upgrade to JUnit 6?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Downstream projects implicitly use JUnit 6 with Quarkus 3.31.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noted

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However, the integration-tests module is not hard-wired to Quarkus... It is usable in a standalone manner 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only implementation uses Quarkus though.

Copy link
Contributor

@dimas-b dimas-b Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is not required for Polaris to use JUnit 6. It is merely a deprecation warning fix in Polaris, but it forces downstream projects for switch to JUnit 6.

Prior work (e.g. #391) makes me think that such use cases might exist outside the Quarkus build env. (and thus may not inherit JUnit 6).

Whether this is still a relevant use case or not I cannot tell, but it might be worth keeping JUnit 5 compatibility for some more time.

adutra
adutra previously approved these changes Feb 10, 2026
@github-project-automation github-project-automation bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Feb 10, 2026
Since apache#3712 has been merged, we can bump JUnit to version 6.

This change also tackes a few deprecation warnings.
@snazy
Copy link
Member Author

snazy commented Feb 12, 2026

I've removed all deprecation changes from this PR.

@snazy snazy merged commit a3f0f31 into apache:main Feb 12, 2026
15 of 30 checks passed
@github-project-automation github-project-automation bot moved this from Ready to merge to Done in Basic Kanban Board Feb 12, 2026
@snazy snazy deleted the junit-6 branch February 12, 2026 14:57
@dimas-b
Copy link
Contributor

dimas-b commented Feb 12, 2026

I've removed all deprecation changes from this PR.

Thx! 👍

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants