53 lines
1.3 KiB
Plaintext
53 lines
1.3 KiB
Plaintext
plugins {
|
|
kotlin("multiplatform")
|
|
id("kotlinx-atomicfu") version "0.12.1"
|
|
}
|
|
|
|
val atomicfuVersion: String by rootProject.extra
|
|
|
|
kotlin {
|
|
jvm ()
|
|
//js()
|
|
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
api(project(":kmath-core"))
|
|
api(project(":kmath-coroutines"))
|
|
compileOnly("org.jetbrains.kotlinx:atomicfu-common:$atomicfuVersion")
|
|
}
|
|
}
|
|
val commonTest by getting {
|
|
dependencies {
|
|
implementation(kotlin("test-common"))
|
|
implementation(kotlin("test-annotations-common"))
|
|
}
|
|
}
|
|
val jvmMain by getting {
|
|
dependencies {
|
|
compileOnly("org.jetbrains.kotlinx:atomicfu:$atomicfuVersion")
|
|
}
|
|
}
|
|
val jvmTest by getting {
|
|
dependencies {
|
|
implementation(kotlin("test"))
|
|
implementation(kotlin("test-junit"))
|
|
}
|
|
}
|
|
// val jsMain by getting {
|
|
// dependencies {
|
|
// compileOnly("org.jetbrains.kotlinx:atomicfu-js:$atomicfuVersion")
|
|
// }
|
|
// }
|
|
// val jsTest by getting {
|
|
// dependencies {
|
|
// implementation(kotlin("test-js"))
|
|
// }
|
|
// }
|
|
|
|
}
|
|
}
|
|
|
|
atomicfu {
|
|
variant = "VH"
|
|
} |