Skip to content

Instantly share code, notes, and snippets.

@birdayz
Created September 23, 2018 22:43
Fat Jar
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Gradle Jar File Example',
'Implementation-Version': version,
'Main-Class': 'de.nerden.samples.graal.Main'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment