Skip to content

Commit 7102040

Browse files
committed
junit forces me to build and run tests with java >= 17
1 parent bdf694a commit 7102040

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

conventions/src/main/kotlin/tel.schich.javacan.convention.base.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ javaComponent.withVariantsFromConfiguration(configurations["testFixturesRuntimeE
99

1010
java {
1111
toolchain {
12-
vendor = JvmVendorSpec.ADOPTIUM
1312
languageVersion = JavaLanguageVersion.of(8)
1413
}
14+
15+
testing {
16+
toolchain {
17+
languageVersion = JavaLanguageVersion.of(25)
18+
}
19+
}
1520
}
1621

1722
tasks.withType<JavaCompile>().configureEach {

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ mavenCentralPublish = "0.8.0"
55
jdtAnnotations = "2.4.0"
66
slf4j = "2.0.17"
77
logback = "1.3.15"
8-
junitJupiter = "5.13.4"
8+
junitJupiter = "6.0.0"
99
jniAccessGenerator = "1.2.2"
1010

1111
[libraries]

0 commit comments

Comments
 (0)