Created
September 23, 2018 22:43
-
-
Save birdayz/6d6cadbb1f9e5e9262ce6fc6538e358b to your computer and use it in GitHub Desktop.
Fat Jar
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
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