remove old hashed binaries during proguard build, update gradle wrapper url

This commit is contained in:
Connor Tumbleson 2014-02-08 18:05:57 -06:00
parent 59b069a7a1
commit b1d1a0863d
2 changed files with 7 additions and 2 deletions

View File

@ -32,6 +32,10 @@ gradle.taskGraph.whenReady {
}
}
task cleanOutputDirectory(type: Delete) {
delete fileTree(dir: jar.destinationDir.getPath(), exclude: "apktool-cli.jar")
}
task proguard(type: JavaExec, dependsOn: fatJar) {
def outFile = jar.destinationDir.getPath() + '/' + "apktool" + '-' + project.apktool_version + '-small' + '.' + jar.extension
inputs.file jar.archivePath
@ -54,4 +58,5 @@ task proguard(type: JavaExec, dependsOn: fatJar) {
args '-dontnote **'
}
proguard.dependsOn cleanOutputDirectory
tasks.getByPath(':release').dependsOn(proguard)

View File

@ -1,6 +1,6 @@
#Sat Feb 08 17:54:55 CST 2014
#Sat Feb 08 18:00:26 CST 2014
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://downloads.gradle.org/distributions/gradle-1.10-bin.zip
distributionUrl=http\://downloads.gradle.org/distributions/gradle-1.10-all.zip