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 }