We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6cda63 commit 7166a4fCopy full SHA for 7166a4f
buildSrc/src/main/kotlin/source-sets-conventions.gradle.kts
@@ -5,6 +5,8 @@
5
@file:OptIn(ExperimentalWasmDsl::class)
6
7
import org.gradle.kotlin.dsl.*
8
+import org.jetbrains.kotlin.gradle.*
9
+import org.jetbrains.kotlin.gradle.dsl.*
10
import org.jetbrains.kotlin.gradle.plugin.mpp.*
11
import org.jetbrains.kotlin.gradle.targets.js.dsl.*
12
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
@@ -30,11 +32,10 @@ kotlin {
30
32
31
33
jvm {
34
withJava()
- compilations.configureEach {
- kotlinOptions {
35
- jvmTarget = "1.8"
36
- freeCompilerArgs += "-Xjdk-release=1.8"
37
- }
+ @OptIn(ExperimentalKotlinGradlePluginApi::class)
+ compilerOptions {
+ jvmTarget.set(JvmTarget.JVM_1_8)
38
+ freeCompilerArgs.add("-Xjdk-release=1.8")
39
}
40
41
0 commit comments