RTAkland
04/07/2025, 2:52 PMChrimaeon
04/07/2025, 2:54 PMRob Elliot
04/07/2025, 5:49 PMhttps://imgs.xkcd.com/comics/wisdom_of_the_ancients.png▾
RTAkland
04/08/2025, 12:47 AMkotlin {
withSourcesJar()
explicitApi()
jvm {
compilerOptions {
jvmTarget = JvmTarget.JVM_11
// ✔ Put the arg here
freeCompilerArgs.add("-Xjvm-default=all")
}
}
mingwX64()
linuxX64()
linuxArm64()
macosX64()
macosArm64()
compilerOptions {
freeCompilerArgs.apply {
add("-Xexpect-actual-classes")
// Not here ❌ cause this arg is only for jvm target
add("-Xjvm-default=all")
}
}
}