File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1
1
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
2
2
import org.jetbrains.compose.ExperimentalComposeLibrary
3
3
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
4
+ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion.Companion.fromVersion
4
5
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
5
6
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig
6
7
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
@@ -12,6 +13,8 @@ plugins {
12
13
kotlin(" plugin.compose" )
13
14
}
14
15
16
+ val language_version: String? = project.properties[" language_version" ] as String?
17
+
15
18
kotlin {
16
19
androidTarget {
17
20
compilations.all {
@@ -51,6 +54,13 @@ kotlin {
51
54
}
52
55
}
53
56
binaries.executable()
57
+ compilations.configureEach {
58
+ compileTaskProvider.configure {
59
+ language_version?.let {
60
+ compilerOptions.languageVersion.set(fromVersion(it))
61
+ }
62
+ }
63
+ }
54
64
}
55
65
56
66
sourceSets {
You can’t perform that action at this time.
0 commit comments