Skip to content

Commit

Permalink
Bump kotlin to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mklkj committed Jul 4, 2024
1 parent 8df4d22 commit d2eef54
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
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
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"
Expand All @@ -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 {
Expand All @@ -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")

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d2eef54

Please sign in to comment.