spierce7
06/06/2021, 3:39 AMdesktopMain
source set, but I couldn’t use jvm dependencies in it (It was looked at / viewed as a common source-set I think). What else could I try?spierce7
06/06/2021, 4:31 AMapplication
plugin.
kotlin {
targets {
jvm()
}
sourceSets {
val commonMain by getting {
if (project.hasProperty("buildProduction")) {
kotlin.srcDir("src/production/kotlin")
} else {
kotlin.srcDir("src/internal/kotlin")
}
I’m interested to know if anyone thinks of something better!xxfast
06/06/2021, 4:37 AMgradle.properties
?spierce7
06/06/2021, 4:42 AM-P
for any gradle command. i.e. if I wanted to run in production, I’d just run
./gradlew :app:run -PbuildProduction
xxfast
06/06/2021, 4:46 AM