diff --git a/brut.apktool/apktool-cli/build.gradle b/brut.apktool/apktool-cli/build.gradle index 1ee0d114..2dce3d92 100644 --- a/brut.apktool/apktool-cli/build.gradle +++ b/brut.apktool/apktool-cli/build.gradle @@ -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) \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 9d72096e..acf97b0b 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -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