late dependency inclusion for mpp

This commit is contained in:
Alexander Nozik 2019-07-22 18:57:47 +03:00
parent ac1c77d94f
commit 1f3b237c49

View File

@ -66,6 +66,7 @@ open class ScientifikMPPlugin : Plugin<Project> {
val jvmMain by getting { val jvmMain by getting {
dependencies { dependencies {
api(kotlin("stdlib-jdk8")) api(kotlin("stdlib-jdk8"))
project.afterEvaluate {
if (extension.atomicfu) { if (extension.atomicfu) {
implementation("org.jetbrains.kotlinx:atomicfu:${Scientifik.atomicfuVersion}") implementation("org.jetbrains.kotlinx:atomicfu:${Scientifik.atomicfuVersion}")
} }
@ -74,6 +75,7 @@ open class ScientifikMPPlugin : Plugin<Project> {
} }
} }
} }
}
val jvmTest by getting { val jvmTest by getting {
dependencies { dependencies {
implementation(kotlin("test")) implementation(kotlin("test"))
@ -83,6 +85,7 @@ open class ScientifikMPPlugin : Plugin<Project> {
val jsMain by getting { val jsMain by getting {
dependencies { dependencies {
api(kotlin("stdlib-js")) api(kotlin("stdlib-js"))
project.afterEvaluate {
if (extension.atomicfu) { if (extension.atomicfu) {
implementation("org.jetbrains.kotlinx:atomicfu-common-js:${Scientifik.atomicfuVersion}") implementation("org.jetbrains.kotlinx:atomicfu-common-js:${Scientifik.atomicfuVersion}")
} }
@ -91,6 +94,7 @@ open class ScientifikMPPlugin : Plugin<Project> {
} }
} }
} }
}
val jsTest by getting { val jsTest by getting {
dependencies { dependencies {
implementation(kotlin("test-js")) implementation(kotlin("test-js"))