Move dagger.gradle to project root.

This commit is contained in:
akwizgran
2018-11-01 14:05:46 +00:00
parent db8796049e
commit f6c8a8cec7
4 changed files with 3 additions and 3 deletions

14
dagger.gradle Normal file
View File

@@ -0,0 +1,14 @@
sourceSets.configureEach { sourceSet ->
tasks.named(sourceSet.compileJavaTaskName).configure {
options.annotationProcessorGeneratedSourcesDirectory = file("$buildDir/generated/source/apt/${sourceSet.name}")
}
}
idea {
module {
sourceDirs += compileJava.options.annotationProcessorGeneratedSourcesDirectory
generatedSourceDirs += compileJava.options.annotationProcessorGeneratedSourcesDirectory
testSourceDirs += compileTestJava.options.annotationProcessorGeneratedSourcesDirectory
generatedSourceDirs += compileTestJava.options.annotationProcessorGeneratedSourcesDirectory
}
}