Created
April 24, 2018 16:48
-
-
Save joshmg/a4ec84d45ba48c9a1dba8bf207b30c88 to your computer and use it in GitHub Desktop.
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
task makeJar(type: Jar) { | |
manifest { | |
attributes 'Implementation-Title': 'APPLICATION NAME', | |
'Implementation-Version': version, | |
'Main-Class': 'com.softwareverde.APPLICATION.Main' | |
} | |
baseName = project.name | |
doFirst { | |
from (configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }) { | |
exclude 'META-INF/MANIFEST.MF' | |
exclude 'META-INF/*.SF' | |
exclude 'META-INF/*.DSA' | |
exclude 'META-INF/*.RSA' | |
} | |
} | |
with jar | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment