gkd/selector/build.gradle.kts

35 lines
889 B
Plaintext
Raw Normal View History

2024-07-11 21:35:48 +08:00
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
2024-05-24 21:23:13 +08:00
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2023-07-10 11:25:17 +08:00
plugins {
2023-08-31 22:22:03 +08:00
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.serialization)
2023-07-10 11:25:17 +08:00
}
kotlin {
2024-08-13 22:38:49 +08:00
jvm()
2023-07-10 11:25:17 +08:00
// https://kotlinlang.org/docs/js-to-kotlin-interop.html#kotlin-types-in-javascript
js(IR) {
binaries.executable()
2023-09-11 19:19:55 +08:00
useEsModules()
2023-07-10 11:25:17 +08:00
generateTypeScriptDefinitions()
browser {}
}
2024-02-26 00:09:13 +08:00
sourceSets {
all {
languageSettings.optIn("kotlin.js.ExperimentalJsExport")
}
2024-05-24 21:23:13 +08:00
commonMain {
dependencies {
implementation(libs.kotlin.stdlib.common)
}
}
jvmTest {
dependencies {
implementation(libs.kotlinx.serialization.json)
2024-08-14 22:09:36 +08:00
implementation(libs.kotlin.test)
2024-05-24 21:23:13 +08:00
}
}
2023-07-10 11:25:17 +08:00
}
}