diff --git a/build.gradle.kts b/build.gradle.kts index f2891f1..d7251f9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,6 @@ /* * lilJudd - * Copyright (C) 2023 moonleay + * Copyright (C) 2024 moonleay * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,7 +21,8 @@ import org.jetbrains.gradle.ext.TaskTriggersConfig import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version "1.9.10" + kotlin("jvm") version "1.9.22" + kotlin("plugin.serialization") version "1.9.22" id("com.github.johnrengelman.shadow") version "8.1.1" id("org.jetbrains.gradle.plugin.idea-ext") version "1.1.7" `maven-publish` @@ -40,6 +41,7 @@ val ktorver = "2.3.7" val exposedver = "0.45.0" val postgresver = "42.7.1" val krontabver = "2.2.4" +val kotlinxserializationver = "1.6.0" val mavenArtifact = "lilJudd" project.base.archivesName.set(mavenArtifact) @@ -93,6 +95,9 @@ dependencies { //Coroutines shadow("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesver") + //JSON Stuff + shadow("org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinxserializationver") + //Logging shadow("org.slf4j:slf4j-api:2.0.3") shadow("org.slf4j:slf4j-simple:2.0.3") @@ -121,7 +126,8 @@ val templateProps = mapOf( "ktorversion" to ktorver, "exposedversion" to exposedver, "postgresversion" to postgresver, - "krontabversion" to krontabver + "krontabversion" to krontabver, + "kotlinxserializationversion" to kotlinxserializationver ) diff --git a/src/main/templates/net/moonleay/lilJudd/build/BuildConstants.kt b/src/main/templates/net/moonleay/lilJudd/build/BuildConstants.kt index d75d861..44c46b3 100644 --- a/src/main/templates/net/moonleay/lilJudd/build/BuildConstants.kt +++ b/src/main/templates/net/moonleay/lilJudd/build/BuildConstants.kt @@ -1,6 +1,6 @@ /* * lilJudd - * Copyright (C) 2023 moonleay + * Copyright (C) 2024 moonleay * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,4 +27,5 @@ internal object BuildConstants { const val exposedVersion = "${exposedversion}" const val postgresVersion = "${postgresversion}" const val krontabVersion = "${krontabversion}" + const val kotlinXSerializationVerson = "${kotlinxserializationversion}" }