Skip to content

Instantly share code, notes, and snippets.

@josh-burton
Created February 26, 2019 19:21
Show Gist options
  • Save josh-burton/d1a04bc00a19e973add816f970efc860 to your computer and use it in GitHub Desktop.
Save josh-burton/d1a04bc00a19e973add816f970efc860 to your computer and use it in GitHub Desktop.
Dagger options
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