Add serialization dependency
This commit is contained in:
parent
5a5f0e16a4
commit
d68d195165
2 changed files with 8 additions and 6 deletions
|
@ -4,11 +4,12 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|||
|
||||
plugins {
|
||||
kotlin("jvm") version "1.5.21"
|
||||
id("org.jetbrains.compose") version "1.0.0-alpha1"
|
||||
kotlin("plugin.serialization") version "1.5.21"
|
||||
id("org.jetbrains.compose") version "1.0.0-alpha3"
|
||||
}
|
||||
|
||||
group = "de.pheerai"
|
||||
version = "0.0.1-SNAPSHOT"
|
||||
version = "1.0.0-SNAPSHOT"
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
|
@ -19,6 +20,7 @@ repositories {
|
|||
|
||||
dependencies {
|
||||
implementation(compose.desktop.currentOs)
|
||||
implementation("org.jetbrains.kotlinx", "kotlinx-serialization-json", "1.2.2")
|
||||
testImplementation(kotlin("test"))
|
||||
}
|
||||
|
||||
|
@ -27,7 +29,7 @@ tasks.test {
|
|||
}
|
||||
|
||||
tasks.withType<KotlinCompile>() {
|
||||
kotlinOptions.jvmTarget = "11"
|
||||
kotlinOptions.jvmTarget = JavaVersion.VERSION_16.toString()
|
||||
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
|
||||
}
|
||||
|
||||
|
@ -35,7 +37,7 @@ compose.desktop {
|
|||
application {
|
||||
mainClass = "MainKt"
|
||||
nativeDistributions {
|
||||
targetFormats(TargetFormat.Deb, TargetFormat.Rpm)
|
||||
targetFormats(TargetFormat.Pkg)
|
||||
packageName = "jeopardy"
|
||||
val fullVersion = (project.version as String)
|
||||
packageVersion = if (fullVersion.contains("-SNAPSHOT")) {
|
||||
|
|
|
@ -8,8 +8,8 @@ import data.*
|
|||
|
||||
val game = Game(
|
||||
title = "j-EP-ardy!",
|
||||
doubleAfter = 5,
|
||||
endGameAfter = 2,
|
||||
doubleAfter = 2,
|
||||
endGameAfter = 5,
|
||||
players = listOf(
|
||||
Player(name = "Oli"),
|
||||
Player(name = "Gesina"),
|
||||
|
|
Loading…
Reference in a new issue