Dagger: activate incremental build

This commit is contained in:
ganfra 2019-07-16 19:13:48 +02:00 committed by Benoit Marty
parent 0ddef67cc9
commit 208460850e
1 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,5 @@
import javax.tools.JavaCompiler

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
@ -52,6 +54,19 @@ allprojects {
}
}
}

tasks.withType(JavaCompile).all {
options.compilerArgs += [
'-Adagger.gradle.incremental=enabled'
]
}

afterEvaluate {
extensions.findByName("kapt")?.arguments {
arg("dagger.gradle.incremental", "enabled")
}
}

}

task clean(type: Delete) {