diff --git a/baksmali/build.gradle b/baksmali/build.gradle index aae88a35..7b94d594 100644 --- a/baksmali/build.gradle +++ b/baksmali/build.gradle @@ -39,13 +39,14 @@ buildscript { } dependencies { - compile project(':util') - compile project(':dexlib2') - compile depends.guava - compile depends.jcommander + implementation project(':util') + implementation project(':dexlib2') + implementation depends.guava + implementation depends.jcommander - testCompile depends.junit - testCompile project(':smali') + testImplementation depends.junit + testImplementation project(':smali') + testImplementation depends.antlr_runtime } processResources.inputs.property('version', version) @@ -54,7 +55,7 @@ processResources.expand('version': version) // Build a separate jar that contains all dependencies task fatJar(type: Jar) { from sourceSets.main.output - from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } + from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } } classifier = 'fat' diff --git a/dexlib2/accessorTestGenerator/build.gradle b/dexlib2/accessorTestGenerator/build.gradle index e50bdc0a..371e87ee 100644 --- a/dexlib2/accessorTestGenerator/build.gradle +++ b/dexlib2/accessorTestGenerator/build.gradle @@ -30,10 +30,10 @@ */ dependencies { - compile project(':util') - compile 'com.google.code.findbugs:jsr305:1.3.9' - compile 'com.google.guava:guava:13.0.1' - compile 'org.antlr:ST4:4.0.7' + implementation project(':util') + implementation 'com.google.code.findbugs:jsr305:1.3.9' + implementation 'com.google.guava:guava:13.0.1' + implementation 'org.antlr:ST4:4.0.7' - testCompile 'junit:junit:4.6' + testImplementation 'junit:junit:4.6' } \ No newline at end of file diff --git a/dexlib2/build.gradle b/dexlib2/build.gradle index b6a7490c..29d7b226 100644 --- a/dexlib2/build.gradle +++ b/dexlib2/build.gradle @@ -46,11 +46,11 @@ configurations { } dependencies { - compile depends.findbugs - compile depends.guava + implementation depends.findbugs + implementation depends.guava - testCompile depends.junit - testCompile depends.mockito + testImplementation depends.junit + testImplementation depends.mockito accessorTestGenerator project('accessorTestGenerator') diff --git a/smali/build.gradle b/smali/build.gradle index 6472f216..84402ab2 100644 --- a/smali/build.gradle +++ b/smali/build.gradle @@ -45,7 +45,7 @@ buildscript { configurations { // Remove the full antlr library that's added by the antlr plugin. We manually // add the smaller antlr_runtime library instead - compile.exclude group: 'org.antlr', module: 'antlr' + implementation.exclude group: 'org.antlr', module: 'antlr' } sourceSets { @@ -73,13 +73,14 @@ idea { } dependencies { - compile project(':util') - compile project(':dexlib2') - compile depends.antlr_runtime - compile depends.jcommander - compile depends.stringtemplate + implementation project(':util') + implementation project(':dexlib2') + implementation depends.antlr_runtime + implementation depends.jcommander + implementation depends.stringtemplate + implementation depends.guava - testCompile depends.junit + testImplementation depends.junit antlr depends.antlr } @@ -90,7 +91,7 @@ processResources.expand('version': version) // Build a separate jar that contains all dependencies task fatJar(type: Jar, dependsOn: jar) { from sourceSets.main.output - from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } + from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } } classifier = 'fat' diff --git a/util/build.gradle b/util/build.gradle index 296e861c..cd2d3f26 100644 --- a/util/build.gradle +++ b/util/build.gradle @@ -30,11 +30,11 @@ */ dependencies { - compile project(':dexlib2') - compile depends.findbugs - compile depends.guava - compile depends.jcommander - testCompile depends.junit + implementation project(':dexlib2') + implementation depends.findbugs + implementation depends.guava + implementation depends.jcommander + testImplementation depends.junit } uploadArchives {