mirror of
https://github.com/gkd-kit/gkd.git
synced 2024-11-16 03:32:38 +08:00
32 lines
813 B
Plaintext
32 lines
813 B
Plaintext
plugins {
|
|
alias(libs.plugins.kotlin.multiplatform)
|
|
alias(libs.plugins.kotlin.serialization)
|
|
}
|
|
|
|
kotlin {
|
|
jvm {
|
|
compilations.all {
|
|
kotlinOptions.jvmTarget = JavaVersion.VERSION_17.majorVersion
|
|
}
|
|
}
|
|
// https://kotlinlang.org/docs/js-to-kotlin-interop.html#kotlin-types-in-javascript
|
|
js(IR) {
|
|
binaries.executable()
|
|
useEsModules()
|
|
generateTypeScriptDefinitions()
|
|
browser {}
|
|
}
|
|
sourceSets {
|
|
all {
|
|
languageSettings.optIn("kotlin.js.ExperimentalJsExport")
|
|
}
|
|
}
|
|
sourceSets["commonMain"].dependencies {
|
|
implementation(libs.kotlin.stdlib.common)
|
|
}
|
|
sourceSets["jvmTest"].dependencies {
|
|
implementation(libs.kotlinx.serialization.json)
|
|
implementation(libs.junit)
|
|
}
|
|
}
|