Skip to content

Commit 07ed034

Browse files
Abduqodiri Qurbonzodatbogdanova
authored andcommitted
Configure jvmToolchain in the kotlin extension scope
Otherwise, the latest Kotlin Gradle Plugin (2.0) fails with: "Configuring JVM toolchain in the Kotlin target level DSL is prohibited. JVM toolchain feature should be configured in the extension scope as it affects all JVM targets (JVM, Android)."
1 parent ba52ce1 commit 07ed034

File tree

1 file changed

+2
-3
lines changed
  • integration/src/test/resources/templates/kmp-with-toolchain

1 file changed

+2
-3
lines changed

integration/src/test/resources/templates/kmp-with-toolchain/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
kotlin {
2-
jvm {
3-
jvmToolchain(21)
4-
}
2+
jvmToolchain(21)
3+
jvm {}
54

65
sourceSets {
76
commonMain {

0 commit comments

Comments
 (0)