Skip to content

Commit 6e2d3a5

Browse files
committed
build: fix warning about kotlin not supporting jdk 25
it would fall back to 24, however also pollute logs with warnings about this: "Kotlin does not yet support 25 JDK target, falling back to Kotlin JVM_24 JVM target" so we can set this explicitly.
1 parent d7e1959 commit 6e2d3a5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

BuildLogic/build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
16+
1517
repositories {
1618
gradlePluginPortal()
1719
mavenCentral()
@@ -24,3 +26,13 @@ dependencies {
2426
plugins {
2527
`kotlin-dsl`
2628
}
29+
30+
kotlin {
31+
jvmToolchain(25)
32+
33+
compilerOptions {
34+
// Kotlin does not yet support JDK 25, so we use 24 for kotlin specifically
35+
// in order to avoid this warning: "Kotlin does not yet support 25 JDK target, falling back to Kotlin JVM_24 JVM target"
36+
jvmTarget.set(JvmTarget.JVM_24)
37+
}
38+
}

0 commit comments

Comments
 (0)