Skip to content

Instantly share code, notes, and snippets.

@dant3
Last active Oct 31, 2018
Embed
What would you like to do?
Fixes problems with Idea+Gradle+Dagger combo then you can't see generated symbols
def generatedMain = new File(buildDir, "generated/main")
compileJava {
doFirst {
generatedMain.mkdirs()
}
options.compilerArgs += ['-s', generatedMain]
}
idea {
module {
sourceDirs += generatedMain
}
}
@dant3
Copy link
Author

dant3 commented Oct 19, 2018

to use just add:

apply from: 'dagger.gradle'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment