After upgrading to Kotlin 1.9.20 I noticed it is n...
# gradle
e
After upgrading to Kotlin 1.9.20 I noticed it is no longer possible to have
commonMain
depend on source sets. I have a task that generates Kotlin files in a secondary source set which is compiled as common Kotlin. Prior to 1.9.20 that worked like https://github.com/openrndr/openrndr/blob/master/openrndr-filter/build.gradle.kts but I have no idea how to set this up in 1.9.20.
m
Add your generated directory to the
commonMain
source set:
Copy code
kotlin.sourceSets.getByName("commonMain").kotlin.srcDir("path/to/generated/dir")
e
ok, so the entire idea of having the generated code in a separate sourceset should be abandoned?
m
Looks like it
e
this works for me, thanks @mbonnin
👍 1
👍🏾 1