kmath/kmath-coroutines/build.gradle.kts

47 lines
1.2 KiB
Plaintext
Raw Normal View History

2019-02-12 14:14:16 +03:00
plugins {
kotlin("multiplatform")
}
2019-04-23 22:31:05 +03:00
val coroutinesVersion: String by rootProject.extra
2019-02-12 14:14:16 +03:00
kotlin {
jvm()
js()
2019-04-23 22:31:05 +03:00
sourceSets {
val commonMain by getting {
2019-02-12 14:14:16 +03:00
dependencies {
api(project(":kmath-core"))
2019-04-23 22:31:05 +03:00
api("org.jetbrains.kotlinx:kotlinx-coroutines-core-common:$coroutinesVersion")
2019-02-12 14:14:16 +03:00
}
}
2019-04-23 22:31:05 +03:00
val commonTest by getting {
2019-02-12 14:14:16 +03:00
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
}
2019-04-23 22:31:05 +03:00
val jvmMain by getting {
2019-02-12 14:14:16 +03:00
dependencies {
2019-04-23 22:31:05 +03:00
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
2019-02-12 14:14:16 +03:00
}
}
2019-04-23 22:31:05 +03:00
val jvmTest by getting {
2019-02-12 14:14:16 +03:00
dependencies {
implementation(kotlin("test"))
implementation(kotlin("test-junit"))
}
}
2019-04-23 22:31:05 +03:00
val jsMain by getting {
2019-02-12 14:14:16 +03:00
dependencies {
2019-04-23 22:31:05 +03:00
api("org.jetbrains.kotlinx:kotlinx-coroutines-core-js:$coroutinesVersion")
2019-02-12 14:14:16 +03:00
}
}
2019-04-23 22:31:05 +03:00
val jsTest by getting {
2019-02-12 14:14:16 +03:00
dependencies {
implementation(kotlin("test-js"))
}
}
}
}