kmath/kmath-coroutines/build.gradle.kts
2019-04-23 16:07:26 +08:00

45 lines
1.1 KiB
Plaintext

plugins {
id("multiplatform-config")
}
kotlin {
jvm()
js()
sourceSets.invoke {
commonMain {
dependencies {
api(project(":kmath-core"))
api("org.jetbrains.kotlinx:kotlinx-coroutines-core-common:${Ver.coroutinesVersion}")
}
}
commonTest {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
}
"jvmMain" {
dependencies {
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:${Ver.coroutinesVersion}")
}
}
"jvmTest" {
dependencies {
implementation(kotlin("test"))
implementation(kotlin("test-junit"))
}
}
"jsMain" {
dependencies {
api("org.jetbrains.kotlinx:kotlinx-coroutines-core-js:${Ver.coroutinesVersion}")
}
}
"jsTest" {
dependencies {
implementation(kotlin("test-js"))
}
}
}
}