dataforge-core/dataforge-meta-io/build.gradle

64 lines
2.1 KiB
Groovy
Raw Normal View History

2018-09-25 22:35:28 +03:00
plugins {
id 'kotlin-multiplatform'
2018-12-05 09:55:30 +03:00
id "org.jetbrains.kotlin.multiplatform"
2018-09-25 22:35:28 +03:00
}
2018-12-05 09:55:30 +03:00
description = "IO for meta"
2018-09-25 22:35:28 +03:00
repositories {
jcenter()
2018-09-25 22:35:28 +03:00
}
2018-09-25 22:35:28 +03:00
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.iosX64, 'ios')
}
sourceSets {
commonMain {
dependencies {
api project(":dataforge-meta")
2018-10-26 16:15:27 +03:00
//implementation 'org.jetbrains.kotlin:kotlin-reflect'
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:$serialization_version"
implementation "org.jetbrains.kotlinx:kotlinx-io:$kotlinx_io_version"
2018-09-25 22:35:28 +03:00
}
}
2018-10-26 16:15:27 +03:00
commonTest {
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-test-common'
implementation 'org.jetbrains.kotlin:kotlin-test-annotations-common'
}
}
2018-09-25 22:35:28 +03:00
jvmMain {
dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$serialization_version"
implementation "org.jetbrains.kotlinx:kotlinx-io-jvm:$kotlinx_io_version"
2018-09-25 22:35:28 +03:00
}
}
2018-10-26 16:15:27 +03:00
jvmTest {
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-test'
implementation 'org.jetbrains.kotlin:kotlin-test-junit'
}
}
2018-09-25 22:35:28 +03:00
jsMain {
dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:$serialization_version"
implementation "org.jetbrains.kotlinx:kotlinx-io-js:$kotlinx_io_version"
2018-09-25 22:35:28 +03:00
}
}
2018-10-26 16:15:27 +03:00
jsTest {
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-test-js'
}
}
2018-09-25 22:35:28 +03:00
// iosMain {
// }
// iosTest {
// }
}
}