diff --git a/build.gradle.kts b/build.gradle.kts index 45306a9d..dac441c9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -31,7 +31,7 @@ subprojects { // Dedicated performance test task per JVM subproject plugins.withId("java") { - val javaExt = extensions.getByType() + val javaExt = extensions.getByType() tasks.register("perfTest") { description = "Runs tests tagged with 'perf'" group = "verification" @@ -51,7 +51,7 @@ subprojects { // Suppress Node.js deprecation warnings (e.g., DEP0040 punycode) during Kotlin/JS npm/yarn tasks // Applies to all Exec-based tasks (covers Yarn/NPM invocations used by Kotlin JS plugin) - tasks.withType().configureEach { + tasks.withType().configureEach { // Merge existing NODE_OPTIONS with --no-deprecation val current = (environment["NODE_OPTIONS"] as String?) ?: System.getenv("NODE_OPTIONS") val merged = if (current.isNullOrBlank()) "--no-deprecation" else "$current --no-deprecation" @@ -145,7 +145,7 @@ tasks.register("generateAllDocs") { // Wrapper-Konfiguration // Apply Node warning suppression on root project Exec tasks as well // Ensures aggregated Kotlin/JS tasks created at root (e.g., kotlinNpmInstall) inherit the env -tasks.withType().configureEach { +tasks.withType().configureEach { val current = (environment["NODE_OPTIONS"] as String?) ?: System.getenv("NODE_OPTIONS") val merged = if (current.isNullOrBlank()) "--no-deprecation" else "$current --no-deprecation" environment("NODE_OPTIONS", merged)