Hi, can someone help why this is work with gradle ...
# multiplatform
o
Hi, can someone help why this is work with gradle groovy but not with gradle Kotlin?
p
For commonMain, the Groovy and Kotlin code can be identical, i.e. try changing line 4 of common.gradle.kts to
commonMain
. It works for me on the project at https://github.com/pajato/ArgusCLI (see build.gradle.kts).
o
It's not a problem, beacuse if I copy and paste this code(gradle Kotlin) in main gradle file, not by apply - it works
l
Replace
sourceSets.commonMain
by
sourceSets.create("commonMain")
or
sourceSets.getByName("commonMain")