Add comprehensive JVM module list for packaged distribution
Include all modules commonly needed by logback, coroutines, Swing, Kotlin serialization, and networking to prevent NoClassDefFoundError when running as a packaged .app bundle.
This commit is contained in:
@@ -46,11 +46,31 @@ compose.desktop {
|
|||||||
copyright = "© 2026 Kyle Bolen"
|
copyright = "© 2026 Kyle Bolen"
|
||||||
|
|
||||||
modules(
|
modules(
|
||||||
"java.naming", // javax.naming — needed by logback
|
// Networking and naming — needed by logback JNDI
|
||||||
"java.management", // JMX — needed by logback
|
"java.naming",
|
||||||
"java.instrument", // needed by logback
|
// JMX — needed by logback JMX appender
|
||||||
"jdk.unsupported", // needed by various reflection-based libs
|
"java.management",
|
||||||
"java.security.jgss", // sometimes needed by networking
|
// Instrumentation — needed by logback/class loading
|
||||||
|
"java.instrument",
|
||||||
|
// Reflection support for Unsafe — needed by coroutines, serialization
|
||||||
|
"jdk.unsupported",
|
||||||
|
// XML processing — needed by logback XML config parser
|
||||||
|
"java.xml",
|
||||||
|
// Logging — java.util.logging bridge
|
||||||
|
"java.logging",
|
||||||
|
// Security
|
||||||
|
"java.security.jgss",
|
||||||
|
"java.security.sasl",
|
||||||
|
// Desktop/AWT (for Swing integration)
|
||||||
|
"java.desktop",
|
||||||
|
// Compiler API — sometimes needed by Kotlin reflection
|
||||||
|
"java.compiler",
|
||||||
|
// SQL — needed by some Kotlin stdlib internals
|
||||||
|
"java.sql",
|
||||||
|
// Network — needed by HTTP calls (Gitea API, pymobiledevice3)
|
||||||
|
"java.net.http",
|
||||||
|
// Preferences — used by some desktop apps
|
||||||
|
"java.prefs",
|
||||||
)
|
)
|
||||||
|
|
||||||
macOS {
|
macOS {
|
||||||
|
|||||||
Reference in New Issue
Block a user