Skip to content

Commit c907947

Browse files
authored
Enable '-jvm-default=disable' explicitly to prevent API dump changes (#4361)
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 a4a7841 commit c907947

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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("-jvm-default=disable")
21+
}
1922
}
2023
}
2124
}

0 commit comments

Comments
 (0)