Skip to content

Commit

Permalink
cleaning up gradle build files, removing proguard
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches committed Jan 17, 2013
1 parent 18ed8c1 commit 3947b4c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 50 deletions.
31 changes: 1 addition & 30 deletions brut.apktool/apktool-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@

version = apktoolversion

configurations {
proguard
}

dependencies {
proguard 'net.sf.proguard:proguard-base:4.8'
compile project(':brut.apktool:apktool-lib')
}

Expand All @@ -33,28 +28,4 @@ gradle.taskGraph.whenReady {
attributes("Main-Class": "brut.apktool.Main")
}
}
}

task proguard(type: JavaExec, dependsOn: jar) {
def outFile = jar.destinationDir.getPath() + '/' + jar.baseName + '-' + jar.version + '-small' + '.' + jar.extension
inputs.file jar.archivePath
outputs.file outFile

classpath = configurations.proguard
main = 'proguard.ProGuard'
args '-injars ' + jar.archivePath
args '-outjars ' + outFile
args '-dontobfuscate'
args '-libraryjars ' + System.properties['java.home'] + '/lib/rt.jar'
args '-dontoptimize'
args '-dontskipnonpubliclibraryclassmembers'
args '-keep public class brut.apktool.Main { public static void main(java.lang.String[]); }'
args '-keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); }'
args '-dontwarn com.google.common.base.**'
args '-dontnote com.google.common.base.**'
args '-dontwarn sun.**'
args '-dontnote sun.**'
}

tasks.getByPath(':release').dependsOn(proguard)

}
2 changes: 1 addition & 1 deletion brut.j.common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
*/

dependencies {
testCompile "junit:junit:3.8.1"
testCompile 'junit:junit:4.8.2'
}

37 changes: 18 additions & 19 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'license'
ext.apktoolversion = '1.5.2-SNAPSHOT'
ext.fullrev = '';
ext.gitrev_version = '';
import org.apache.tools.ant.filters.*

repositories {
mavenCentral()
Expand All @@ -39,7 +38,7 @@ class Compatibility {
}

task wrapper(type: Wrapper) {
gradleVersion = '1.3'
gradleVersion = '1.3'
}

// If anyone uses this outside of GoogleCode (Apktool) developers. I will hunt you down and hurt you.
Expand All @@ -48,23 +47,23 @@ task release {
}

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.5.0'
}
repositories {
mavenCentral()
}
dependencies {
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.5.0'
}
}

subprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'idea'

repositories {
mavenCentral()
}
dependencies {
testCompile 'junit:junit:4.8.2'
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'idea'
repositories {
mavenCentral()
}
dependencies {
testCompile 'junit:junit:4.8.2'
}
}

0 comments on commit 3947b4c

Please sign in to comment.