Maksym Moroz
10/13/2025, 11:07 AMproject.rootProject.subprojects {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class.java) {
compilerOptions {
freeCompilerArgs.add("-Xsam-conversions=class")
}
}
}
From what I could look up it seems this behaviour should be now enabled by default but Gradle documentation still mentions this
https://docs.gradle.org/current/userguide/kotlin_dsl.html#sec:kotlin_compiler_arguments
What am I missing?Vampire
10/13/2025, 11:12 AMkotlin-dsl plugin, not for all Kotlin tasks.
Besides that this kind of cross-project configuration of course is highly discouraged bad practice.Maksym Moroz
10/13/2025, 11:13 AM