fix(desktop): restore java.management module — confirms #2819 fix
Reverts the intentional breakage from d0a6bbc96. The smoke test
proved it catches the crash: removing java.management from jlink
modules causes a fatal IncompatibleClassChangeError in kmp-tor
at launch (the module is needed for ManagementFactory + tor runtime).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -107,10 +107,10 @@ compose.desktop {
|
||||
nativeDistributions {
|
||||
appResourcesRootDir.set(project.layout.projectDirectory.dir("src/jvmMain/appResources"))
|
||||
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb, TargetFormat.Rpm)
|
||||
// INTENTIONALLY BROKEN — removed java.management to prove CI catches #2819
|
||||
// Output of ./gradlew suggestRuntimeModules (+ java.management already present)
|
||||
modules(
|
||||
"java.instrument", // Runtime instrumentation (agent/profiler hooks)
|
||||
// "java.management" REMOVED to reproduce #2819
|
||||
"java.management", // Required by kmp-tor TorRuntime
|
||||
"java.prefs", // java.util.prefs (desktop persistence)
|
||||
"java.sql", // JDBC metadata (Jackson, SQLite driver)
|
||||
"jdk.security.auth", // JAAS authentication callbacks
|
||||
|
||||
Reference in New Issue
Block a user