Skip to content

Commit

Permalink
Fix compilation error when using the JDK 21 for Getting Started with …
Browse files Browse the repository at this point in the history
…Kotlin (#2102)
  • Loading branch information
Torch3333 authored Jul 30, 2024
1 parent 480f381 commit 2db34ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/getting-started-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

application {
mainClass.set("MainKt")
}

0 comments on commit 2db34ea

Please sign in to comment.