Skip to content

Commit

Permalink
Set JVM target compatibility to Java 21
Browse files Browse the repository at this point in the history
Updated both `java.targetCompatibility` and the Kotlin `jvmTarget` to align with Java 21. This ensures consistency in build configuration and leverages Java 21 features throughout the project.
  • Loading branch information
smyrgeorge committed Jan 11, 2025
1 parent a2cb7cf commit c8f2cd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bench/postgres-spring-boot-r2dbc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
kotlin("jvm")
alias(libs.plugins.kotlin.spring)
Expand All @@ -6,6 +8,7 @@ plugins {
}

java.sourceCompatibility = JavaVersion.VERSION_21
java.targetCompatibility = JavaVersion.VERSION_21

dependencies {
implementation("org.jetbrains.kotlin:kotlin-reflect")
Expand All @@ -22,6 +25,7 @@ dependencies {

kotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
freeCompilerArgs.add("-Xwhen-guards")
freeCompilerArgs.add("-Xjsr305=strict")
}
Expand Down

0 comments on commit c8f2cd2

Please sign in to comment.