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}