kmath/kmath-sequential/build.gradle.kts

54 lines
1.3 KiB
Plaintext
Raw Normal View History

2019-02-02 18:16:25 +03:00
plugins {
kotlin("multiplatform")
2019-04-17 12:24:06 +03:00
id("kotlinx-atomicfu")
2019-02-02 18:16:25 +03:00
}
2019-02-03 13:07:35 +03:00
val atomicfuVersion: String by rootProject.extra
2019-02-02 18:16:25 +03:00
kotlin {
jvm ()
2019-02-03 13:07:35 +03:00
//js()
2019-02-02 18:16:25 +03:00
2019-04-17 12:24:06 +03:00
sourceSets.invoke {
commonMain {
2019-02-02 18:16:25 +03:00
dependencies {
api(project(":kmath-core"))
api(project(":kmath-coroutines"))
2019-04-17 12:24:06 +03:00
compileOnly("org.jetbrains.kotlinx:atomicfu-common:${Ver.atomicfuVersion}")
2019-02-02 18:16:25 +03:00
}
}
2019-04-17 12:24:06 +03:00
commonTest {
2019-02-02 18:16:25 +03:00
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
}
2019-04-17 12:24:06 +03:00
"jvmMain" {
2019-02-02 18:16:25 +03:00
dependencies {
2019-04-17 12:24:06 +03:00
compileOnly("org.jetbrains.kotlinx:atomicfu:${Ver.atomicfuVersion}")
2019-02-02 18:16:25 +03:00
}
}
2019-04-17 12:24:06 +03:00
"jvmTest" {
2019-02-02 18:16:25 +03:00
dependencies {
implementation(kotlin("test"))
implementation(kotlin("test-junit"))
}
}
// val jsMain by getting {
// dependencies {
2019-02-03 13:07:35 +03:00
// compileOnly("org.jetbrains.kotlinx:atomicfu-js:$atomicfuVersion")
2019-02-02 18:16:25 +03:00
// }
// }
2019-02-03 13:07:35 +03:00
// val jsTest by getting {
// dependencies {
// implementation(kotlin("test-js"))
// }
2019-02-02 18:16:25 +03:00
// }
2019-02-03 13:07:35 +03:00
2019-02-02 18:16:25 +03:00
}
2019-02-03 13:07:35 +03:00
}
atomicfu {
variant = "VH"
2019-04-17 12:24:06 +03:00
}