-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dagger2 generated code and gradle + netbeans #396
Comments
It might be because the def processors = ['com.google.dagger:dagger-compiler:2.17']
processors.forEach { it ->
if (project.hasProperty('evaluatingIDE') && project.property('evaluatingIDE') == 'NetBeans') {
dependencies.implementation it
} else {
dependencies.annotationProcessor it
}
} Obviously, replacing your annotationProcessor declarations. EDIT: Had to switch the configuration names. |
Sorry this message slipped thru the cracks. So I tried your suggestion. No luck really, but I didn't fully understand what I need to do. So I c-n-p the above code into my build.gradle and that just got me to: I didn't quite understand what you mean about replacing your annotationProcessor declarations. I changed my deps to be a more "normal":
and then: Still same error about missing annotationProcessor() method. Maybe I miss understood something. |
I have updated the previous code snippet (I missed the |
Ok that totally worked! That for your help! Your work on G4NB is invaluable! |
Env: NB 8.2, JDK 1.8.0.162, Linux x64, Gradle4NB plugin 1.4.3
Not sure if this is an issue with NB or G4NB or maybe just something in my build.gradle, but here it is: doing some work with JavaSE & Dagger2. Dagger2 generates some code, which tucks nicely into build/classes/java/main. With Dagger2 apps, you do code to some of the generated code. I have a very vanilla build.gradle and my simple app builds/runs fine in on the CLI and in NB. HOWEVER, NB will mark the classes using generated code as 'broken' (red error indicator in the projects panel, and such).
Without changing my build.gradle, is there a way to make NB (or G4NB) "see" the generated code so that NB doesn't show not found error symbols?
My build.gradle looks like:
Upgrading to NB9/G4NB 2.x not on the radar right now.
The text was updated successfully, but these errors were encountered: