Daniele Segato
11/27/2024, 11:01 AMtasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().all {
if (name != "kspCommonMainKotlinMetadata") {
dependsOn("kspCommonMainKotlinMetadata")
}
}
to your build to make any kotlin compilation task depends on the common kotlin metadata
• instruct on adding
kotlin {
sourceSets {
commonMain {
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
}
}
}
to the build to make the generated code available in commonMain
• it say nothing about the current limitations that makes it not possible to have generated code in intermediate sourcesets like iosMain
I’d also like to know which issues I should follow to know about progresses in this regard.
Thank you!Daniele Segato
11/28/2024, 8:58 AM