Skip to content

Commit 1a09b3b

Browse files
committed
Simplify compiler options
1 parent 6229e13 commit 1a09b3b

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

shared/build.gradle.kts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ kotlin {
2727
compileSdk = libs.versions.android.compileSdk.get().toInt()
2828
minSdk = libs.versions.android.minSdk.get().toInt()
2929

30-
compilations.configureEach {
31-
compilerOptions.configure {
32-
jvmTarget = JvmTarget.JVM_11
33-
}
30+
compilerOptions {
31+
jvmTarget.set(JvmTarget.JVM_11)
3432
}
3533

3634
experimentalProperties["android.experimental.kmp.enableAndroidResources"] = true

ui-components/build.gradle.kts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ kotlin {
2222
compileSdk = libs.versions.android.compileSdk.get().toInt()
2323
minSdk = libs.versions.android.minSdk.get().toInt()
2424

25-
compilations.configureEach {
26-
compilerOptions.configure {
27-
jvmTarget = JvmTarget.JVM_11
28-
}
25+
compilerOptions {
26+
jvmTarget.set(JvmTarget.JVM_11)
2927
}
3028

3129
experimentalProperties["android.experimental.kmp.enableAndroidResources"] = true

0 commit comments

Comments
 (0)