59 lines
1.9 KiB
Groovy
59 lines
1.9 KiB
Groovy
plugins {
|
|
id "org.jetbrains.kotlin.multiplatform"
|
|
}
|
|
|
|
description = "IO for meta"
|
|
|
|
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")
|
|
//implementation 'org.jetbrains.kotlin:kotlin-reflect'
|
|
api "org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:$serializationVersion"
|
|
api "org.jetbrains.kotlinx:kotlinx-io:$ioVersion"
|
|
}
|
|
}
|
|
commonTest {
|
|
dependencies {
|
|
implementation 'org.jetbrains.kotlin:kotlin-test-common'
|
|
implementation 'org.jetbrains.kotlin:kotlin-test-annotations-common'
|
|
}
|
|
}
|
|
jvmMain {
|
|
dependencies {
|
|
api "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$serializationVersion"
|
|
api "org.jetbrains.kotlinx:kotlinx-io-jvm:$ioVersion"
|
|
}
|
|
}
|
|
jvmTest {
|
|
dependencies {
|
|
implementation 'org.jetbrains.kotlin:kotlin-test'
|
|
implementation 'org.jetbrains.kotlin:kotlin-test-junit'
|
|
}
|
|
}
|
|
jsMain {
|
|
dependencies {
|
|
api "org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:$serializationVersion"
|
|
api "org.jetbrains.kotlinx:kotlinx-io-js:$ioVersion"
|
|
}
|
|
}
|
|
jsTest {
|
|
dependencies {
|
|
implementation 'org.jetbrains.kotlin:kotlin-test-js'
|
|
}
|
|
}
|
|
// iosMain {
|
|
// }
|
|
// iosTest {
|
|
// }
|
|
}
|
|
} |