diff --git a/build.gradle.kts b/build.gradle.kts index b153ecd..156ae77 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,5 @@ +import org.jetbrains.kotlin.gradle.dsl.JvmTarget + val ktor_version: String by project val kotlin_version: String by project val logback_version: String by project @@ -5,9 +7,9 @@ val exposed_version: String by project val h2_version: String by project plugins { - kotlin("jvm") version "1.9.24" + kotlin("jvm") version "2.0.0" id("io.ktor.plugin") version "2.3.12" - id("org.jetbrains.kotlin.plugin.serialization") version "1.9.24" + id("org.jetbrains.kotlin.plugin.serialization") version "2.0.0" } group = "io.github.wulkanowy" @@ -23,11 +25,10 @@ application { val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks val compileTestKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks -compileKotlin.kotlinOptions { - jvmTarget = JavaVersion.VERSION_17.toString() -} -compileTestKotlin.kotlinOptions { - jvmTarget = JavaVersion.VERSION_17.toString() +kotlin { + compilerOptions { + jvmTarget = JvmTarget.JVM_17 + } } repositories { @@ -49,7 +50,7 @@ dependencies { implementation("org.jetbrains.exposed:exposed-dao:$exposed_version") implementation("org.jetbrains.exposed:exposed-jdbc:$exposed_version") implementation("org.jetbrains.exposed:exposed-java-time:$exposed_version") - implementation("org.postgresql:postgresql:42.6.0") + implementation("org.postgresql:postgresql:42.7.2") implementation("org.flywaydb:flyway-core:9.22.2") implementation("io.ktor:ktor-server-auth-jvm:2.3.4") diff --git a/gradle.properties b/gradle.properties index ec0e8fc..12821ea 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ ktor_version=2.3.12 -kotlin_version=1.9.24 +kotlin_version=2.0.0 logback_version=1.5.6 kotlin.code.style=official exposed_version = 0.52.0