forked from kscience/kmath
50 lines
1.2 KiB
Groovy
50 lines
1.2 KiB
Groovy
plugins {
|
|
id "org.jetbrains.kotlin.multiplatform"
|
|
}
|
|
|
|
kotlin {
|
|
jvm {
|
|
compilations["main"].kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
js()
|
|
|
|
sourceSets {
|
|
commonMain {
|
|
dependencies {
|
|
api 'org.jetbrains.kotlin:kotlin-stdlib-common'
|
|
}
|
|
}
|
|
commonTest {
|
|
dependencies {
|
|
implementation 'org.jetbrains.kotlin:kotlin-test-common'
|
|
implementation 'org.jetbrains.kotlin:kotlin-test-annotations-common'
|
|
}
|
|
}
|
|
jvmMain {
|
|
dependencies {
|
|
api 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
|
|
}
|
|
}
|
|
jvmTest {
|
|
dependencies {
|
|
implementation 'org.jetbrains.kotlin:kotlin-test'
|
|
implementation 'org.jetbrains.kotlin:kotlin-test-junit'
|
|
}
|
|
}
|
|
jsMain {
|
|
dependencies {
|
|
api 'org.jetbrains.kotlin:kotlin-stdlib-js'
|
|
}
|
|
}
|
|
jsTest {
|
|
dependencies {
|
|
implementation 'org.jetbrains.kotlin:kotlin-test-js'
|
|
}
|
|
}
|
|
// mingwMain {
|
|
// }
|
|
// mingwTest {
|
|
// }
|
|
}
|
|
}
|