https://kotlinlang.org logo
#ksp
Title
# ksp
d

Dmytro Serdiuk

03/06/2024, 12:28 AM
Hello! I saw in the documentation next snippet:
Copy code
kotlin { sourceSets {
main.kotlin.srcDirs += 'build/generated/ksp/main/kotlin'
test.kotlin.srcDirs += 'build/generated/ksp/test/kotlin' }
}
If you are using IntelliJ IDEA and KSP in a Gradle plugin then the above snippet will give the following warning:
Execution optimizations have been disabled for task ':publishPluginJar' to ensure correctness due to the following reasons: Gradle detected a problem with the following location: '../build/generated/ksp/main/kotlin'.
Reason: Task ':publishPluginJar' uses this output of task ':kspKotlin' without declaring an explicit or implicit dependency.
how this setup relates to publishPluginJar? Thanks
2 Views