Created
February 26, 2019 19:21
-
-
Save josh-burton/d1a04bc00a19e973add816f970efc860 to your computer and use it in GitHub Desktop.
Dagger options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
allProjects { | |
tasks.withType(JavaCompile).configureEach { | |
options.compilerArgs += [ | |
"-Adagger.formatGeneratedSource=disabled", | |
"-Adagger.gradle.incremental=true" | |
] | |
} | |
afterEvaluate { | |
extensions.findByName('kapt')?.arguments { | |
arg('dagger.formatGeneratedSource', 'disabled') | |
arg('dagger.gradle.incremental', 'true') | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment