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:
@@ -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()
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvmToolchain(25)
|
// Toolchain is now handled centrally in the root build.gradle.kts
|
||||||
|
|
||||||
jvm {
|
jvm {
|
||||||
compilerOptions {
|
compilerOptions {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvmToolchain(25)
|
// Toolchain is now handled centrally in the root build.gradle.kts
|
||||||
|
|
||||||
jvm()
|
jvm()
|
||||||
js {
|
js {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user