Skip to content

Commit e5684d9

Browse files
authored
fix: Preserve manifest attributes in minimized jar (#255)
1 parent 16bfd0c commit e5684d9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,12 @@ tasks {
284284
// Shadow JAR — the only distribution artifact
285285
// ============================================================================
286286
shadowJar {
287+
manifest {
288+
attributes(
289+
"Enable-Native-Access" to "ALL-UNNAMED"
290+
)
291+
}
292+
287293
dependencies {
288294
exclude(dependency("org.jetbrains.skiko:skiko-awt-runtime-.*:.*"))
289295
exclude(dependency("net.java.dev.jna:jna:.*"))

0 commit comments

Comments
 (0)