unplugged-system/external/kotlinx.atomicfu/gradle/compile-options.gradle

27 lines
671 B
Groovy

/*
* Copyright 2017-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
ext.configureKotlin = { isMultiplatform ->
if (rootProject.ext.jvm_ir_enabled) {
println "Using JVM IR compiler for project $project.name"
if (isMultiplatform) {
kotlin.jvm().compilations.all {
kotlinOptions.useIR = true
}
} else {
kotlin.target.compilations.all {
kotlinOptions.useIR = true
}
}
}
kotlin.sourceSets.all {
languageSettings {
apiVersion = "1.4"
languageVersion = "1.4"
}
}
}