refactor(gradle, desktop): Build-Konfiguration bereinigt, Ports optimiert und UI-Logik konsolidiert

Signed-off-by: Stefan Mogeritsch <stefan.mo.co@gmail.com>
This commit is contained in:
2026-05-09 14:27:17 +02:00
parent 280db663c7
commit 8d176ce955
10 changed files with 123 additions and 107 deletions
+14 -26
View File
@@ -4,31 +4,29 @@ android.nonTransitiveRClass=true
# Kotlin Configuration
kotlin.code.style=official
# Increased Kotlin Daemon Heap for JS Compilation
kotlin.daemon.jvmargs=-Xmx8g -XX:+UseParallelGC -XX:MaxMetaspaceSize=2g
# Increased Kotlin Daemon Heap for JS Compilation + JDK 25 Warning Suppression
kotlin.daemon.jvmargs=-Xmx8g -XX:+UseParallelGC -XX:MaxMetaspaceSize=2g --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --enable-native-access=ALL-UNNAMED
kotlin.js.compiler.sourcemaps=false
# Kotlin Compiler Optimizations (Phase 5)
# Kotlin Compiler Optimizations
kotlin.incremental=true
kotlin.incremental.multiplatform=true
kotlin.incremental.js=true
kotlin.caching.enabled=true
kotlin.compiler.execution.strategy=in-process
# kotlin.compiler.preciseCompilationResultsBackup=true
kotlin.stdlib.default.dependency=true
# Gradle Configuration
# Increased Gradle Daemon Heap
org.gradle.jvmargs=-Xmx8g -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx6g" -XX:+UseParallelGC -XX:MaxMetaspaceSize=2g -XX:+HeapDumpOnOutOfMemoryError -Xshare:off -Djava.awt.headless=true
# Optimized for JDK 25: Added --add-opens and --enable-native-access for compiler tools
org.gradle.jvmargs=-Xmx8g -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=2g -XX:+HeapDumpOnOutOfMemoryError -Xshare:off -Djava.awt.headless=true --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --enable-native-access=ALL-UNNAMED -Djdk.instrument.traceUsage=false
org.gradle.workers.max=8
org.gradle.vfs.watch=true
# Configuration Cache optimieren - TEMPORÄR DEAKTIVIERT wegen JS-Test Serialisierungsproblemen
# Configuration Cache (JS-Test workaround)
org.gradle.configuration-cache=false
org.gradle.configuration-cache.problems=warn
# Build Performance verbessern
# Build Performance
org.gradle.parallel=true
org.gradle.caching=true
@@ -46,7 +44,7 @@ org.jetbrains.kotlin.wasm.check.wasm.binary.format=false
kotlin.native.ignoreDisabledTargets=true
idea.project.settings.delegate.build.run.actions.to.gradle=true
# Enable NPM/Yarn lifecycle scripts for Kotlin/JS (required for sql.js & worker setup)
# NPM/Yarn lifecycle
kotlin.js.yarn.ignoreScripts=false
org.jetbrains.kotlin.js.yarn.ignoreScripts=false
kotlin.js.npm.ignoreScripts=false
@@ -56,31 +54,21 @@ org.jetbrains.kotlin.js.npm.ignoreScripts=false
org.gradle.logging.level=lifecycle
kotlin.build.report.single_file=false
# Compose Experimental Features
# Compose Experimental
org.jetbrains.compose.experimental.jscanvas.enabled=true
org.jetbrains.compose.experimental.wasm.enabled=true
# Java Toolchain: ensure Gradle auto-downloads a full JDK when needed
# Java Toolchain
org.gradle.java.installations.auto-download=true
org.gradle.java.installations.auto-detect=true
# Development Environment Support
dev.port.offset=0
# Set dev.port.offset=100 for second developer
# Set dev.port.offset=200 for the third developer
# ------------------------------------------------------------------
# Wasm/JS Feature Toggle
# ------------------------------------------------------------------
# Setze enableWasm=true, um die Web-App zu bauen oder Web-spezifische
# Module zu testen. Default=false spart massiv Zeit beim Desktop-Build.
# Feature Toggles
enableWasm=true
enableDesktop=true
dev.port.offset=0
# Dokka Gradle plugin V2 mode (with helpers for V1 compatibility)
# See https://kotl.in/dokka-gradle-migration
# org.jetbrains.dokka.experimental.gradle.pluginMode=V2EnabledWithHelpers
# Dokka V2
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
# Workaround for Gradle 9 / KMP "Plugin loaded multiple times" error in Docker/CI
# This allows subprojects to re-declare plugins even if they are already on the classpath
# Gradle 9 Workaround
kotlin.mpp.allowMultiplePluginDeclarations=true