fixes issue #394, and changes building script to fatJar (instead of build)

This commit is contained in:
Connor Tumbleson
2013-01-17 07:58:50 -06:00
parent bbee938b5c
commit 92eae964a9
3 changed files with 6 additions and 4 deletions

View File

@ -15,6 +15,7 @@
*/
version = apktoolversion
apply plugin: 'fatjar'
configurations {
proguard
@ -26,16 +27,14 @@ dependencies {
}
gradle.taskGraph.whenReady {
jar {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
fatJar {
manifest {
attributes("Main-Class": "brut.apktool.Main")
}
}
}
task proguard(type: JavaExec, dependsOn: jar) {
task proguard(type: JavaExec, dependsOn: fatJar) {
def outFile = jar.destinationDir.getPath() + '/' + jar.baseName + '-' + jar.version + '-small' + '.' + jar.extension
inputs.file jar.archivePath
outputs.file outFile