59 lines
1.7 KiB
Groovy
59 lines
1.7 KiB
Groovy
|
plugins {
|
||
|
id 'kotlin-multiplatform'// version '1.3.0-rc-116'
|
||
|
id "me.champeau.gradle.jmh" version "0.4.5"
|
||
|
}
|
||
|
|
||
|
repositories {
|
||
|
maven { url = 'http://dl.bintray.com/kotlin/kotlin-eap' }
|
||
|
mavenCentral()
|
||
|
}
|
||
|
|
||
|
kotlin {
|
||
|
targets {
|
||
|
fromPreset(presets.jvm, 'jvm')
|
||
|
fromPreset(presets.js, 'js')
|
||
|
// For ARM, preset should be changed to presets.iosArm32 or presets.iosArm64
|
||
|
// For Linux, preset should be changed to e.g. presets.linuxX64
|
||
|
// For MacOS, preset should be changed to e.g. presets.macosX64
|
||
|
//fromPreset(presets.mingwX64, 'mingw')
|
||
|
}
|
||
|
sourceSets {
|
||
|
commonMain {
|
||
|
dependencies {
|
||
|
implementation '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 {
|
||
|
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
|
||
|
}
|
||
|
}
|
||
|
jvmTest {
|
||
|
dependencies {
|
||
|
implementation 'org.jetbrains.kotlin:kotlin-test'
|
||
|
implementation 'org.jetbrains.kotlin:kotlin-test-junit'
|
||
|
}
|
||
|
}
|
||
|
jsMain {
|
||
|
dependencies {
|
||
|
implementation 'org.jetbrains.kotlin:kotlin-stdlib-js'
|
||
|
}
|
||
|
}
|
||
|
jsTest {
|
||
|
dependencies {
|
||
|
implementation 'org.jetbrains.kotlin:kotlin-test-js'
|
||
|
}
|
||
|
}
|
||
|
// mingwMain {
|
||
|
// }
|
||
|
// mingwTest {
|
||
|
// }
|
||
|
}
|
||
|
}
|