Skip to content

Instantly share code, notes, and snippets.

@joshmg
Created April 24, 2018 16:48
Show Gist options
  • Save joshmg/a4ec84d45ba48c9a1dba8bf207b30c88 to your computer and use it in GitHub Desktop.
Save joshmg/a4ec84d45ba48c9a1dba8bf207b30c88 to your computer and use it in GitHub Desktop.
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