Skip to content

Commit 4862747

Browse files
authored
Enable '-Xjvm-default=disable' explicitly to prevent API dump changes (#4372)
The default mode is changing from 'disable' to 'enable' in KT-71768. However, core libraries will migrate to the new '-jvm-default=enable' mode explicitly, once they update to Kotlin 2.2, see KT-72051.
1 parent 5e86c9f commit 4862747

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: buildSrc/src/main/kotlin/kotlin-multiplatform-conventions.gradle.kts

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ kotlin {
1515
jvm {
1616
compilations.all {
1717
compileTaskProvider.configure {
18-
compilerOptions.jvmTarget = JvmTarget.JVM_1_8
18+
compilerOptions {
19+
jvmTarget = JvmTarget.JVM_1_8
20+
freeCompilerArgs.addAll("-Xjvm-default=disable")
21+
}
1922
}
2023
}
2124
}

0 commit comments

Comments
 (0)