2019-02-12 14:14:16 +03:00
|
|
|
plugins {
|
|
|
|
kotlin("multiplatform")
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
jvm()
|
|
|
|
js()
|
|
|
|
|
2019-04-17 12:24:06 +03:00
|
|
|
sourceSets.invoke {
|
|
|
|
commonMain {
|
2019-02-12 14:14:16 +03:00
|
|
|
dependencies {
|
|
|
|
api(project(":kmath-core"))
|
2019-04-17 12:24:06 +03:00
|
|
|
api("org.jetbrains.kotlinx:kotlinx-coroutines-core-common:${Ver.coroutinesVersion}")
|
2019-02-12 14:14:16 +03:00
|
|
|
}
|
|
|
|
}
|
2019-04-17 12:24:06 +03:00
|
|
|
commonTest {
|
2019-02-12 14:14:16 +03:00
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test-common"))
|
|
|
|
implementation(kotlin("test-annotations-common"))
|
|
|
|
}
|
|
|
|
}
|
2019-04-17 12:24:06 +03:00
|
|
|
"jvmMain" {
|
2019-02-12 14:14:16 +03:00
|
|
|
dependencies {
|
2019-04-17 12:24:06 +03:00
|
|
|
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:${Ver.coroutinesVersion}")
|
2019-02-12 14:14:16 +03:00
|
|
|
}
|
|
|
|
}
|
2019-04-17 12:24:06 +03:00
|
|
|
"jvmTest" {
|
2019-02-12 14:14:16 +03:00
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test"))
|
|
|
|
implementation(kotlin("test-junit"))
|
|
|
|
}
|
|
|
|
}
|
2019-04-17 12:24:06 +03:00
|
|
|
"jsMain" {
|
2019-02-12 14:14:16 +03:00
|
|
|
dependencies {
|
2019-04-17 12:24:06 +03:00
|
|
|
api("org.jetbrains.kotlinx:kotlinx-coroutines-core-js:${Ver.coroutinesVersion}")
|
2019-02-12 14:14:16 +03:00
|
|
|
}
|
|
|
|
}
|
2019-04-17 12:24:06 +03:00
|
|
|
"jsTest" {
|
2019-02-12 14:14:16 +03:00
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test-js"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|