Skip to content

Commit

Permalink
Upgrade to Kotlin 1.9.20 (#1445)
Browse files Browse the repository at this point in the history
No language functionality differences we care about, but the compiler can now
produce JVM 21 bytecode.
  • Loading branch information
sgrimm authored Nov 1, 2023
1 parent b2df422 commit 3977a61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -239,16 +239,15 @@ sourceSets.test { java.srcDir("build/generated-test/kotlin") }

java {
toolchain { languageVersion = JavaLanguageVersion.of(21) }
// Kotlin compiler (as of 1.9.10) only supports Java 20 target compatibility.
targetCompatibility = JavaVersion.VERSION_20
targetCompatibility = JavaVersion.VERSION_21
}

node { yarnVersion = "1.22.17" }

tasks.withType<KotlinCompile> {
compilerOptions {
// Kotlin and Java target compatibility must be the same.
jvmTarget = JvmTarget.JVM_20
jvmTarget = JvmTarget.JVM_21
allWarningsAsErrors = true
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jacksonVersion=2.15.3
jooqVersion=3.18.7
jtsVersion=1.19.0
jUnitVersion=5.9.3
kotlinVersion=1.9.0
kotlinVersion=1.9.20
ktfmtVersion=0.42
ktorVersion=2.3.5
postgresJdbcVersion=42.6.0
Expand Down

0 comments on commit 3977a61

Please sign in to comment.