File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -392,6 +392,10 @@ tasks {
392392 // Include the Java runtime classes
393393 val javaHome = System .getProperty(" java.home" )
394394 libraryjars(" $javaHome /jmods" )
395+
396+ // Include all dependencies as library jars so Proguard can resolve hierarchies
397+ // for classes excluded from the fat JAR (like JNA and Skiko runtimes).
398+ libraryjars(configurations.runtimeClasspath.get().filter { it.exists() })
395399
396400 // Report on what was removed
397401 printusage(layout.buildDirectory.file(" proguard/usage.txt" ).get().asFile)
Original file line number Diff line number Diff line change 3333-keep class io.ktor.** { *; }
3434
3535# JNA (Native access)
36- #-keep class com.sun.jna.** { *; }
36+ -keep class com.sun.jna.** { *; }
37+
38+ # FileKit (Native file dialogs)
39+ -keep class io.github.vinceglb.filekit.** { *; }
3740
3841# Keep SPI services (ServiceLoader)
3942-keepnames class * {
You can’t perform that action at this time.
0 commit comments