summaryrefslogtreecommitdiff
path: root/sw-common-model/build.gradle.kts
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2020-01-23 01:40:57 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2020-01-23 01:41:51 +0100
commit4bb8e2043f2f7a79eafd78d3626c9807b44e62cf (patch)
tree2f8f00f72197a27dded49d9d57e17c7b8e24352d /sw-common-model/build.gradle.kts
parentFix server URL in react frontend (diff)
downloadseven-wonders-4bb8e2043f2f7a79eafd78d3626c9807b44e62cf.tar.gz
seven-wonders-4bb8e2043f2f7a79eafd78d3626c9807b44e62cf.tar.bz2
seven-wonders-4bb8e2043f2f7a79eafd78d3626c9807b44e62cf.zip
Add kotlinx.serialization support to common model
Diffstat (limited to 'sw-common-model/build.gradle.kts')
-rw-r--r--sw-common-model/build.gradle.kts6
1 files changed, 6 insertions, 0 deletions
diff --git a/sw-common-model/build.gradle.kts b/sw-common-model/build.gradle.kts
index d94559c5..a35ef0ff 100644
--- a/sw-common-model/build.gradle.kts
+++ b/sw-common-model/build.gradle.kts
@@ -1,8 +1,11 @@
plugins {
kotlin("multiplatform")
+ id("org.jetbrains.kotlin.plugin.serialization")
id("org.jlleitschuh.gradle.ktlint")
}
+val kotlinSerialization = "0.14.0"
+
kotlin {
jvm()
js {
@@ -12,6 +15,7 @@ kotlin {
val commonMain by getting {
dependencies {
implementation(kotlin("stdlib-common"))
+ implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:$kotlinSerialization")
}
}
val commonTest by getting {
@@ -23,6 +27,7 @@ kotlin {
val jvmMain by getting {
dependencies {
implementation(kotlin("stdlib-jdk8"))
+ implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime:$kotlinSerialization")
}
}
val jvmTest by getting {
@@ -34,6 +39,7 @@ kotlin {
val jsMain by getting {
dependencies {
implementation(kotlin("stdlib-js"))
+ implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:$kotlinSerialization")
}
}
val jsTest by getting {
bgstack15