[Gradle, K/N] Prefer injection over lateinit vars for task configuration

#KT-45801 Fixed
This commit is contained in:
Alexander Likhachev
2021-04-06 18:45:13 +03:00
parent b530427bb2
commit 6f96c225d7
6 changed files with 65 additions and 62 deletions
@@ -15,6 +15,11 @@ repositories {
mavenCentral()
}
// KT-45801
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile).configureEach {
kotlinOptions
}
kotlin {
sourceSets {
commonMain {
@@ -7,6 +7,11 @@ repositories {
mavenCentral()
}
// KT-45801
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile>().configureEach {
kotlinOptions
}
kotlin {
sourceSets["commonMain"].apply {
dependencies {