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

@ -4,6 +4,8 @@ v1.5.2 (TBA)
-Fixed (issue #392) - Don't crash out if .git folder isn't present. Use SNAPSHOT-DEV instead.
-Fixed (issue #67) - Only store compressed resources.arsc if original was compressed, otherwise STORE.
-Moved build.gradle files to each sub-project, more organization :)
-Fixed (issue #394) - Prevented duplicated files in final jar which saved around 1.2mb.
-Added Proguard to drop final jar size from 6.2mb to 2.6mb.
v1.5.1 PR3 (Released December 23 - 2012) Codename: Pre Release 3
-Reverted "Prevents removal of <uses-sdk> on decompile, but then throws warning on rebuild (issue #366)"

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

View File

@ -52,6 +52,7 @@ buildscript {
}
dependencies {
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.5.0'
classpath 'eu.appsatori:gradle-fatjar-plugin:0.2-rc1'
}
}