Skip to content

Commit

Permalink
Merge pull request #473 from handymenny/fix-clikt
Browse files Browse the repository at this point in the history
always include mordant-jvm-jna-jvm in shadow jar
  • Loading branch information
handymenny authored Sep 23, 2024
2 parents cdfa2bf + 8cdd096 commit 4711e21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ tasks {
}

shadowJar {
// slf4j-nop to silence slf4j warning
val keepDependencies = listOf("org.slf4j:slf4j-nop:.*")
// slf4j-nop to silence slf4j warning, mordant-jvm-jna-jvm for clikt
val keepDependencies =
listOf("org.slf4j:slf4j-nop:.*", "com.github.ajalt.mordant:mordant-jvm-jna-jvm:.*")
// Enable shadow minify
minimize { keepDependencies.forEach { exclude(dependency(it)) } }
}
Expand Down

0 comments on commit 4711e21

Please sign in to comment.