File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13plugins {
24 `java- library`
35 groovy
@@ -33,6 +35,7 @@ kotlin {
3335
3436 compilerOptions {
3537 freeCompilerArgs.add(" -Xannotation-default-target=param-property" )
38+ jvmTarget = JvmTarget .fromTarget(libs.versions.target.jdk.get())
3639 }
3740}
3841
@@ -109,10 +112,6 @@ tasks.withType<Test>().configureEach {
109112 " --add-exports" , " jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED"
110113 ))
111114
112- javaLauncher.set(javaToolchains.launcherFor {
113- languageVersion.set(JavaLanguageVersion .of(libs.versions.test.jdk.get()))
114- })
115-
116115 finalizedBy(tasks.named(" jacocoTestReport" ))
117116}
118117
Original file line number Diff line number Diff line change 22processor = " 2025.5-SNAPSHOT"
33
44kotlin = " 2.2.10"
5- build -jdk = " 11"
6- test -jdk = " 17"
5+ target -jdk = " 11"
6+ build -jdk = " 17"
77build-plugins = " 2025.9"
88
99api = " 2024.2"
You can’t perform that action at this time.
0 commit comments