Created
July 28, 2017 07:54
-
-
Save anhtranbk/b9343d2896af0a7984acd7c2ac497759 to your computer and use it in GitHub Desktop.
Gradle fatJar simple
This file contains 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
apply plugin: 'java' | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
compile 'org.mindrot:jbcrypt:0.3m' | |
} | |
jar { | |
from { | |
(configurations.runtime).collect { | |
it.isDirectory() ? it : zipTree(it) | |
} | |
} | |
manifest { | |
attributes("Main-Class": "Main" ) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment