Added also kotlinx-serialization as compile only so that we can mark also properties as Transient for kotlinx-serialization

This commit is contained in:
dankito 2024-08-17 04:54:06 +02:00
parent 64a1f3afb5
commit 29210974f0
2 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
plugins {
kotlin("multiplatform")
kotlin("plugin.noarg")
kotlin("plugin.serialization")
}
@ -74,6 +75,8 @@ kotlin {
commonMain {
dependencies {
api("org.jetbrains.kotlinx:kotlinx-datetime:$kotlinxDateTimeVersion")
compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-core:1.7.1")
}
}
commonTest {

View File

@ -10,7 +10,7 @@ pluginManagement {
plugins {
kotlin("multiplatform") version kotlinVersion
kotlin("jvm") version kotlinVersion
// kotlin("plugin.serialization") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
kotlin("plugin.allopen") version kotlinVersion
kotlin("plugin.noarg") version kotlinVersion