gradle fatjar

Solutions on MaxInterview for gradle fatjar by the best coders in the world

showing results for - "gradle fatjar"
Thea
28 Mar 2016
1//create a single Jar with all dependencies
2task fatJar(type: Jar) {
3	manifest {
4        attributes 'Implementation-Title': 'Gradle Jar File Example',
5        	'Implementation-Version': version,
6        	'Main-Class': 'com.mkyong.DateUtils'
7    }
8    baseName = project.name + '-all'
9    from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
10    with jar
11}