Add missing JVM modules to packaged distribution

javax.naming.NamingException (used by logback's JNDI lookup) was not
included in the bundled JVM image. Explicitly include:
- java.naming (javax.naming)
- java.management (JMX, used by logback)
- java.instrument (used by logback)
- jdk.unsupported (reflection support)
- java.security.jgss (networking)
This commit is contained in:
Kyle Bolen
2026-08-02 18:02:49 +00:00
parent 29595d5a7f
commit 4b6a5fccf6

View File

@@ -44,6 +44,15 @@ compose.desktop {
description = "Import photos from phones into PhotoPhile" description = "Import photos from phones into PhotoPhile"
vendor = "bolenpad" vendor = "bolenpad"
copyright = "© 2026 Kyle Bolen" copyright = "© 2026 Kyle Bolen"
modules(
"java.naming", // javax.naming — needed by logback
"java.management", // JMX — needed by logback
"java.instrument", // needed by logback
"jdk.unsupported", // needed by various reflection-based libs
"java.security.jgss", // sometimes needed by networking
)
macOS { macOS {
bundleID = "com.bolenpad.photophetch" bundleID = "com.bolenpad.photophetch"
// Uncomment and add icon.icns to src/main/resources/ for a custom icon: // Uncomment and add icon.icns to src/main/resources/ for a custom icon: