David Holas
01/13/2024, 2:24 PM-Xexpect-actual-classes
to supress the warnings?
My gradle.properties
contains org.gradle.jvmargs=-Xmx8192M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx8192M"
, but idk whether i should put it just there or into -Dkotlin...options
. Doing both seems to be causing some gradle issues.mbonnin
01/13/2024, 2:31 PMtasks.withType(KotlinCompile::class.java).configureEach {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs +"-Xexpect-actual-classes"
}
}
mbonnin
01/13/2024, 2:34 PMkotlin {
targets.all {
compilations.all {
compilerOptions.options.freeCompilerArgs.add("-Xexpect-actual-classes")
}
}
}
mbonnin
01/13/2024, 2:34 PMgradle.properties
onlyDavid Holas
01/13/2024, 2:38 PM```kotlin {
targets.all {
compilations.all {
compilerOptions.options.freeCompilerArgs.add("-Xexpect-actual-classes")
}
}
}```
mbonnin
01/13/2024, 2:45 PMmbonnin
01/13/2024, 2:46 PMDavid Holas
01/13/2024, 2:51 PMmbonnin
01/13/2024, 2:54 PMJeff Lockhart
01/13/2024, 4:22 PMKotlinCompile
task method didn't work for the IDE to stop showing warnings. But that might have been fixed now in 1.9.22.Roland
01/14/2024, 4:24 PMsourceSets {
all {
languageSettings.enableLanguageFeature("ExpectActualClasses")
}
val commonMain by getting { ... }
....
}
David Holas
01/26/2024, 7:45 PM