refactor(build): centralize JVM toolchain configuration in root build.gradle.kts

Removed redundant `jvmToolchain(25)` declarations across module build scripts, as the JVM toolchain is now managed centrally. Added comments for clarity.
This commit is contained in:
2026-01-03 12:52:01 +01:00
parent e8f458d4c5
commit 591f703015
14 changed files with 15 additions and 28 deletions
@@ -7,12 +7,10 @@ group = "at.mocode"
version = "1.0.0" version = "1.0.0"
kotlin { kotlin {
// Toolchain is now handled centrally in the root build.gradle.kts
val enableWasm = providers.gradleProperty("enableWasm").orNull == "true" val enableWasm = providers.gradleProperty("enableWasm").orNull == "true"
// Align the toolchain with a project (see composeApp uses 25)
jvmToolchain(25)
// JVM target for backend usage // JVM target for backend usage
jvm() jvm()
@@ -7,12 +7,10 @@ group = "at.mocode"
version = "1.0.0" version = "1.0.0"
kotlin { kotlin {
// Toolchain is now handled centrally in the root build.gradle.kts
val enableWasm = providers.gradleProperty("enableWasm").orNull == "true" val enableWasm = providers.gradleProperty("enableWasm").orNull == "true"
// Align toolchain with project (see composeApp uses 25)
jvmToolchain(25)
// JVM target for backend usage // JVM target for backend usage
jvm() jvm()
+1 -1
View File
@@ -4,7 +4,7 @@ plugins {
} }
kotlin { kotlin {
jvmToolchain(25) // Toolchain is now handled centrally in the root build.gradle.kts
jvm { jvm {
compilerOptions { compilerOptions {
+1 -1
View File
@@ -6,7 +6,7 @@ plugins {
} }
kotlin { kotlin {
jvmToolchain(25) // Toolchain is now handled centrally in the root build.gradle.kts
// Target platforms // Target platforms
jvm { jvm {
+1 -2
View File
@@ -6,10 +6,9 @@ plugins {
} }
kotlin { kotlin {
// Toolchain is now handled centrally in the root build.gradle.kts
val enableWasm = providers.gradleProperty("enableWasm").orNull == "true" val enableWasm = providers.gradleProperty("enableWasm").orNull == "true"
jvmToolchain(25)
jvm() jvm()
js(IR) { js(IR) {
browser() browser()
+1 -2
View File
@@ -9,10 +9,9 @@ plugins {
} }
kotlin { kotlin {
// Toolchain is now handled centrally in the root build.gradle.kts
val enableWasm = providers.gradleProperty("enableWasm").orNull == "true" val enableWasm = providers.gradleProperty("enableWasm").orNull == "true"
jvmToolchain(25)
jvm() jvm()
js { js {
browser { browser {
+1 -1
View File
@@ -9,7 +9,7 @@ plugins {
} }
kotlin { kotlin {
jvmToolchain(25) // Toolchain is now handled centrally in the root build.gradle.kts
jvm() jvm()
js { js {
+1 -2
View File
@@ -10,10 +10,9 @@ group = "at.mocode.clients.shared"
version = "1.0.0" version = "1.0.0"
kotlin { kotlin {
// Toolchain is now handled centrally in the root build.gradle.kts
val enableWasm = providers.gradleProperty("enableWasm").orNull == "true" val enableWasm = providers.gradleProperty("enableWasm").orNull == "true"
jvmToolchain(25)
jvm() jvm()
js { js {
+1 -2
View File
@@ -9,10 +9,9 @@ plugins {
} }
kotlin { kotlin {
// Toolchain is now handled centrally in the root build.gradle.kts
val enableWasm = providers.gradleProperty("enableWasm").orNull == "true" val enableWasm = providers.gradleProperty("enableWasm").orNull == "true"
jvmToolchain(25)
jvm() jvm()
js { js {
browser { browser {
@@ -16,10 +16,9 @@ group = "at.mocode.clients"
version = "1.0.0" version = "1.0.0"
kotlin { kotlin {
// Toolchain is now handled centrally in the root build.gradle.kts
val enableWasm = providers.gradleProperty("enableWasm").orNull == "true" val enableWasm = providers.gradleProperty("enableWasm").orNull == "true"
jvmToolchain(25)
jvm() jvm()
js { js {
@@ -16,10 +16,9 @@ group = "at.mocode.clients"
version = "1.0.0" version = "1.0.0"
kotlin { kotlin {
// Toolchain is now handled centrally in the root build.gradle.kts
val enableWasm = providers.gradleProperty("enableWasm").orNull == "true" val enableWasm = providers.gradleProperty("enableWasm").orNull == "true"
jvmToolchain(25)
jvm() jvm()
js { js {
@@ -16,10 +16,9 @@ group = "at.mocode.clients"
version = "1.0.0" version = "1.0.0"
kotlin { kotlin {
// Toolchain is now handled centrally in the root build.gradle.kts
val enableWasm = providers.gradleProperty("enableWasm").orNull == "true" val enableWasm = providers.gradleProperty("enableWasm").orNull == "true"
jvmToolchain(25)
jvm() jvm()
js { js {
+1 -2
View File
@@ -18,10 +18,9 @@ plugins {
} }
kotlin { kotlin {
// Toolchain is now handled centrally in the root build.gradle.kts
val enableWasm = providers.gradleProperty("enableWasm").orNull == "true" val enableWasm = providers.gradleProperty("enableWasm").orNull == "true"
jvmToolchain(25)
// JVM Target für Desktop // JVM Target für Desktop
jvm() jvm()
@@ -17,9 +17,8 @@ plugins {
} }
kotlin { kotlin {
val enableWasm = providers.gradleProperty("enableWasm").orNull == "true" // Toolchain is now handled centrally in the root build.gradle.kts
val enableWasm = providers.gradleProperty("enableWasm").orNull == "true"
jvmToolchain(25)
// JVM Target für Desktop // JVM Target für Desktop
jvm { jvm {