2018-09-30 17:18:04 +03:00
|
|
|
plugins {
|
2018-12-11 17:25:55 +03:00
|
|
|
id "org.jetbrains.kotlin.multiplatform"
|
2018-09-30 17:18:04 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
2019-01-21 10:22:37 +03:00
|
|
|
jvm {
|
|
|
|
compilations["main"].kotlinOptions.jvmTarget = "1.8"
|
2019-01-21 16:20:14 +03:00
|
|
|
compilations["test"].kotlinOptions.jvmTarget = "1.8"
|
2018-09-30 17:18:04 +03:00
|
|
|
}
|
2019-01-21 10:22:37 +03:00
|
|
|
js()
|
|
|
|
|
2018-09-30 17:18:04 +03:00
|
|
|
sourceSets {
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
2018-12-11 17:25:55 +03:00
|
|
|
api 'org.jetbrains.kotlin:kotlin-stdlib-common'
|
2018-09-30 17:18:04 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
commonTest {
|
|
|
|
dependencies {
|
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-test-common'
|
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-test-annotations-common'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
jvmMain {
|
|
|
|
dependencies {
|
2018-12-11 17:25:55 +03:00
|
|
|
api 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
|
2018-09-30 17:18:04 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
jvmTest {
|
|
|
|
dependencies {
|
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-test'
|
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-test-junit'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
jsMain {
|
|
|
|
dependencies {
|
2018-12-11 17:25:55 +03:00
|
|
|
api 'org.jetbrains.kotlin:kotlin-stdlib-js'
|
2018-09-30 17:18:04 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
jsTest {
|
|
|
|
dependencies {
|
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-test-js'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// mingwMain {
|
|
|
|
// }
|
|
|
|
// mingwTest {
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|