Skip to content

chore(deps): update JUnit to 6 - #103

Merged
rasmusbe merged 1 commit into
mainfrom
chore/junit-6
Nov 13, 2026
Merged

rasmusbe merged 1 commit into
mainfrom
chore/junit-6

Conversation

@rasmusbe

Copy link
Copy Markdown
Member

Updates JUnit from 5.14.4 to 6.1.3.

JUnit 6 needs Java 17. The build set source and target compatibility to 1.8 for every source set, so Gradle refused to resolve JUnit 6 for the tests:

Dependency resolution is looking for a library compatible with JVM runtime version 8, but org.junit.jupiter:junit-jupiter-api:6.1.3 is only compatible with JVM runtime version 17 or newer.

Only compileTestJava is raised to 17. The published library keeps its Java 8 target: the built main classes are class file version 52, the test classes 61.

Tested with the Gradle wrapper on JDK 17 and JDK 21 in Docker: 110 tests pass.

Replaces the Renovate PR for JUnit 6, which only bumps the version.

@rasmusbe
rasmusbe merged commit 2dfe720 into main Nov 13, 2026
5 checks passed
@rasmusbe
rasmusbe deleted the chore/junit-6 branch November 13, 2026 00:20
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.

1 participant