https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
o

Oleg Yukhnevich

01/04/2019, 8:59 PM
Hi, can someone help why this is work with gradle groovy but not with gradle Kotlin?
p

pajatopmr

01/05/2019, 8:38 AM
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

Oleg Yukhnevich

01/05/2019, 11:20 AM
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

louiscad

01/13/2019, 9:20 PM
Replace
sourceSets.commonMain
by
sourceSets.create("commonMain")
or
sourceSets.getByName("commonMain")