Skip to content

Commit 3d14e3a

Browse files
committed
Use Java 17 compatibility in all projects
1 parent 0111956 commit 3d14e3a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

junit-jupiter-starter-gradle-kotlin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ tasks.test {
2323
}
2424

2525
tasks.withType<JavaCompile>().configureEach {
26-
options.release.set(17)
26+
options.release = 17
2727
}
2828

2929
tasks.withType<KotlinCompile>().configureEach {

junit-multiple-engines/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_1_8
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
22
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
33

44
plugins {
@@ -84,11 +84,11 @@ dependencies {
8484
tasks {
8585

8686
withType<JavaCompile>().configureEach {
87-
options.release.set(8)
87+
options.release = 17
8888
}
8989

9090
withType<KotlinCompile>().configureEach {
91-
compilerOptions.jvmTarget = JVM_1_8
91+
compilerOptions.jvmTarget = JVM_17
9292
}
9393

9494
val consoleLauncherTest by registering(JavaExec::class) {

junit-multiple-engines/buildSrc/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
22

33
plugins {
44
`kotlin-dsl`
@@ -10,9 +10,9 @@ repositories {
1010

1111
tasks {
1212
compileKotlin {
13-
compilerOptions.jvmTarget = JVM_11
13+
compilerOptions.jvmTarget = JVM_17
1414
}
1515
compileJava {
16-
options.release.set(11)
16+
options.release = 17
1717
}
1818
}

0 commit comments

Comments
 (0)