task clearJar(: Delete) {
delete }
task makeJar(:org.gradle.api.tasks.bundling.Jar) {
baseName from()
into()
exclude()
exclude{ it.name.startsWith();}
}
.dependsOn(, build)
task proguard(: proguard.gradle.ProGuardTask, : ) {
injars outjars configuration }
转载于:https://my.oschina.net/u/1474965/blog/632925