Skip to content

Commit 58bcdfa

Browse files
authored
Require Java 17 and update JUnit to 6.1.3 (#198)
JUnit 6 requires Java 17. Compile with --release 17 instead of source/target 1.8, which also makes javac check API usage against the Java 17 class library. Java 8 support was never exercised in CI.
1 parent 439f2ab commit 58bcdfa

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎build.gradle‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repositories {
1010
}
1111

1212
dependencies {
13-
testImplementation 'org.junit.jupiter:junit-jupiter:5.14.4'
13+
testImplementation 'org.junit.jupiter:junit-jupiter:6.1.3'
1414
testImplementation 'org.json:json:20250517'
1515
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
1616
}
@@ -28,9 +28,10 @@ jar {
2828
java {
2929
withJavadocJar()
3030
withSourcesJar()
31+
}
3132

32-
sourceCompatibility = 1.8
33-
targetCompatibility = 1.8
33+
tasks.withType(JavaCompile).configureEach {
34+
options.release = 17
3435
}
3536

3637
artifacts {

0 commit comments

Comments
 (0)