Use JDK 25 to build and include in releases (#1770)

* Use JDK 25 to build and include in releases

* Set Jvm Targets in BuildSrc

* Put JvmTarget in libs.versions.toml

* Maybe this will work for Zulu

* Use LTS java version
This commit is contained in:
Mitchell Syer
2025-11-08 19:37:59 -05:00
committed by GitHub
parent c452a3548f
commit 00f5652db9
8 changed files with 27 additions and 13 deletions
+4 -3
View File
@@ -31,8 +31,9 @@ allprojects {
subprojects {
plugins.withType<JavaPlugin> {
extensions.configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
val javaVersion = JavaVersion.toVersion(libs.versions.jvmTarget.get())
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
}
@@ -51,7 +52,7 @@ subprojects {
dependsOn("ktlintFormat")
}
compilerOptions {
jvmTarget = JvmTarget.JVM_21
jvmTarget = JvmTarget.fromTarget(libs.versions.jvmTarget.get())
freeCompilerArgs.add("-Xcontext-receivers")
}
}