Skip to content

Commit b1186f7

Browse files
committed
Simplify configuration of jvm target
1 parent fb66e0e commit b1186f7

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

buildSrc/src/main/kotlin/kotlin-conventions.gradle.kts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
2-
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_1_8
32

43
plugins {
54
kotlin("multiplatform")
@@ -12,11 +11,8 @@ kotlin {
1211
optIn.add("kotlin.contracts.ExperimentalContracts")
1312
}
1413

15-
jvm {
16-
compilerOptions {
17-
jvmTarget.set(JVM_1_8)
18-
}
19-
}
14+
jvm()
15+
jvmToolchain(8)
2016

2117
js(IR) {
2218
browser()

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pluginManagement {
66
}
77

88
plugins {
9-
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
9+
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
1010
}
1111

1212
dependencyResolutionManagement {

0 commit comments

Comments
 (0)