Skip to content

Commit

Permalink
修改项目依赖包
Browse files Browse the repository at this point in the history
  • Loading branch information
xuexiangjys committed Jun 28, 2019
1 parent 55fb121 commit f7e17fd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion xaop-runtime/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ dependencies {
}

android.libraryVariants.all { variant ->
JavaCompile javaCompile = variant.javaCompile
JavaCompile javaCompile = null
if (variant.hasProperty('javaCompileProvider')) {
//gradle 4.10.1 +
TaskProvider<JavaCompile> provider = variant.javaCompileProvider
javaCompile = provider.get()
} else {
javaCompile = variant.hasProperty('javaCompiler') ? variant.javaCompiler : variant.javaCompile
}
javaCompile.doLast {
String[] args = [
"-showWeaveInfo",
Expand Down

0 comments on commit f7e17fd

Please sign in to comment.