diff --git a/baksmali/build.gradle b/baksmali/build.gradle index 19f5549b..da47f14b 100644 --- a/baksmali/build.gradle +++ b/baksmali/build.gradle @@ -37,10 +37,10 @@ dependencies { compile project(':util') compile project(':dexlib') compile project(':dexlib2') - compile 'commons-cli:commons-cli:1.2' - compile 'com.google.code.findbugs:jsr305:1.3.9' + compile depends.commons_cli + compile depends.guava - proguard 'net.sf.proguard:proguard-base:4.8' + proguard depends.proguard } processResources.inputs.property('version', version) diff --git a/build.gradle b/build.gradle index dfc76a5b..8c990bf5 100644 --- a/build.gradle +++ b/build.gradle @@ -65,6 +65,18 @@ subprojects { version = parent.version + ext { + depends = [guava: 'com.google.guava:guava:14.0', + findbugs: 'com.google.code.findbugs:jsr305:1.3.9', + junit: 'junit:junit:4.6', + antlr_runtime: 'org.antlr:antlr-runtime:3.2', + antlr: 'org.antlr:antlr:3.2', + commons_cli: 'commons-cli:commons-cli:1.2', + jflex: 'de.jflex:jflex:1.4.3', + proguard: 'net.sf.proguard:proguard-base:4.8' + ] + } + jar { version = jarVersion } @@ -72,8 +84,6 @@ subprojects { repositories { mavenCentral() } - - } // Note: please don't use this. This is strictly for the official releases diff --git a/dexlib/build.gradle b/dexlib/build.gradle index 6c99eddb..93c969da 100644 --- a/dexlib/build.gradle +++ b/dexlib/build.gradle @@ -31,6 +31,6 @@ dependencies { compile project(':util') - compile 'com.google.code.findbugs:jsr305:1.3.9' - compile 'com.google.guava:guava:13.0.1' + compile depends.findbugs + compile depends.guava } \ No newline at end of file diff --git a/dexlib2/build.gradle b/dexlib2/build.gradle index a855e226..e571f2ec 100644 --- a/dexlib2/build.gradle +++ b/dexlib2/build.gradle @@ -35,10 +35,10 @@ configurations { dependencies { compile project(':util') - compile 'com.google.code.findbugs:jsr305:1.3.9' - compile 'com.google.guava:guava:13.0.1' + compile depends.findbugs + compile depends.guava - testCompile 'junit:junit:4.6' + testCompile depends.junit accessorTestGenerator project('accessorTestGenerator') } diff --git a/smali/build.gradle b/smali/build.gradle index 92abcb18..d8138a78 100644 --- a/smali/build.gradle +++ b/smali/build.gradle @@ -67,14 +67,14 @@ idea { dependencies { compile project(':util') compile project(':dexlib') - compile 'org.antlr:antlr-runtime:3.2' - compile 'commons-cli:commons-cli:1.2' + compile depends.antlr_runtime + compile depends.commons_cli - testCompile 'junit:junit:4.6' + testCompile depends.junit - antlr3 'org.antlr:antlr:3.2' - jflex 'de.jflex:jflex:1.4.3' - proguard 'net.sf.proguard:proguard-base:4.8' + antlr3 depends.antlr + jflex depends.jflex + proguard depends.proguard } task generateAntlrSource(type: JavaExec) { diff --git a/util/build.gradle b/util/build.gradle index 81cb3346..6dbd7a07 100644 --- a/util/build.gradle +++ b/util/build.gradle @@ -30,8 +30,8 @@ */ dependencies { - compile 'commons-cli:commons-cli:1.2' - compile 'com.google.code.findbugs:jsr305:1.3.9' - compile 'com.google.guava:guava:13.0.1' - testCompile 'junit:junit:4.6' + compile depends.commons_cli + compile depends.findbugs + compile depends.guava + testCompile depends.junit } \ No newline at end of file