1
airfling 2019-01-03 15:24:23 +08:00
自己写个 fatJar 的 task,自己打包
task fatjar(type: Jar) { baseName = project.name + '-all' from files(sourceSets.main.output.classesDir) from files(sourceSets.main.output.resourcesDir) from { configurations.compile.collect { zipTree(it) } } { exclude "META-INF/*.SF" exclude "META-INF/*.DSA" exclude "META-INF/*.RSA" } manifest { attributes 'Main-Class': 'com.test.DemoApplication' } } |