47 lines
1.2 KiB
Plaintext
47 lines
1.2 KiB
Plaintext
plugins {
|
|
kotlin("multiplatform")
|
|
}
|
|
|
|
val coroutinesVersion: String by rootProject.extra
|
|
|
|
kotlin {
|
|
jvm()
|
|
js()
|
|
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
api(project(":kmath-core"))
|
|
api("org.jetbrains.kotlinx:kotlinx-coroutines-core-common:$coroutinesVersion")
|
|
}
|
|
}
|
|
val commonTest by getting {
|
|
dependencies {
|
|
implementation(kotlin("test-common"))
|
|
implementation(kotlin("test-annotations-common"))
|
|
}
|
|
}
|
|
val jvmMain by getting {
|
|
dependencies {
|
|
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
|
|
}
|
|
}
|
|
val jvmTest by getting {
|
|
dependencies {
|
|
implementation(kotlin("test"))
|
|
implementation(kotlin("test-junit"))
|
|
}
|
|
}
|
|
val jsMain by getting {
|
|
dependencies {
|
|
api("org.jetbrains.kotlinx:kotlinx-coroutines-core-js:$coroutinesVersion")
|
|
}
|
|
}
|
|
val jsTest by getting {
|
|
dependencies {
|
|
implementation(kotlin("test-js"))
|
|
}
|
|
}
|
|
}
|
|
}
|