Created
January 29, 2024 11:15
-
-
Save ahmedMubarak2024/73728d4f55c7925a7edf4b8ba2d54a4a to your computer and use it in GitHub Desktop.
create fat jar.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jar { | |
from { | |
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } | |
} | |
} | |
you may need this if you get errors | |
tasks.withType(Jar) { | |
duplicatesStrategy = DuplicatesStrategy.EXCLUDE | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment