Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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

Lines changed: 4 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /