-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
compile/testCompile has been deprecated for a long time, and will be removed in the next major version of gradle.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,13 +39,14 @@ buildscript { | |
} | ||
|
||
dependencies { | ||
compile project(':util') | ||
compile project(':dexlib2') | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
JesusFreke
Author
Owner
|
||
compile depends.guava | ||
compile depends.jcommander | ||
|
||
testCompile depends.junit | ||
testCompile project(':smali') | ||
implementation project(':util') | ||
implementation project(':dexlib2') | ||
implementation depends.guava | ||
implementation depends.jcommander | ||
|
||
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' | ||
|
||
|
hi @JesusFreke , I noticed trying to do the upgrade to v2.5.0 that I was forced to add dexlib2 (previously just baksmali/smali) - iBotPeaches/Apktool#2519
I think this was my fault, because after a quick research it appears that
api
is the old behavior ofcompile
, butcompile
was leaking dependencies that it may use. So I used dexlib2, but only imported smali/baksmali. That failed with 2.5.0 until I explicitly brought in dexlib2.I brought it in, so no issue - well still a build issue with java8 but I haven't figured it out yet. I just wanted to post this because I also swapped compile/implementation and thought they were equal.