mirror of
https://github.com/gkd-kit/gkd.git
synced 2024-11-16 03:32:38 +08:00
perf: gradle api
This commit is contained in:
parent
6452cb41d8
commit
e3aed7807b
|
@ -1,3 +1,5 @@
|
||||||
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
alias(libs.plugins.kotlin.multiplatform)
|
alias(libs.plugins.kotlin.multiplatform)
|
||||||
alias(libs.plugins.kotlin.serialization)
|
alias(libs.plugins.kotlin.serialization)
|
||||||
|
@ -5,8 +7,8 @@ plugins {
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
jvm {
|
||||||
compilations.all {
|
compilerOptions {
|
||||||
kotlinOptions.jvmTarget = JavaVersion.VERSION_17.majorVersion
|
jvmTarget.set(JvmTarget.JVM_17)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// https://kotlinlang.org/docs/js-to-kotlin-interop.html#kotlin-types-in-javascript
|
// https://kotlinlang.org/docs/js-to-kotlin-interop.html#kotlin-types-in-javascript
|
||||||
|
@ -20,12 +22,16 @@ kotlin {
|
||||||
all {
|
all {
|
||||||
languageSettings.optIn("kotlin.js.ExperimentalJsExport")
|
languageSettings.optIn("kotlin.js.ExperimentalJsExport")
|
||||||
}
|
}
|
||||||
}
|
commonMain {
|
||||||
sourceSets["commonMain"].dependencies {
|
dependencies {
|
||||||
implementation(libs.kotlin.stdlib.common)
|
implementation(libs.kotlin.stdlib.common)
|
||||||
}
|
}
|
||||||
sourceSets["jvmTest"].dependencies {
|
}
|
||||||
|
jvmTest {
|
||||||
|
dependencies {
|
||||||
implementation(libs.kotlinx.serialization.json)
|
implementation(libs.kotlinx.serialization.json)
|
||||||
implementation(libs.junit)
|
implementation(libs.junit)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
alias(libs.plugins.kotlin.multiplatform)
|
alias(libs.plugins.kotlin.multiplatform)
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
jvm {
|
||||||
compilations.all {
|
compilerOptions {
|
||||||
kotlinOptions.jvmTarget = JavaVersion.VERSION_17.majorVersion
|
jvmTarget.set(JvmTarget.JVM_17)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
wasmJs {
|
wasmJs {
|
||||||
|
@ -18,8 +20,10 @@ kotlin {
|
||||||
all {
|
all {
|
||||||
languageSettings.optIn("kotlin.js.ExperimentalJsExport")
|
languageSettings.optIn("kotlin.js.ExperimentalJsExport")
|
||||||
}
|
}
|
||||||
}
|
commonMain {
|
||||||
sourceSets["commonMain"].dependencies {
|
dependencies {
|
||||||
implementation(libs.kotlin.stdlib.common)
|
implementation(libs.kotlin.stdlib.common)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user