-
Notifications
You must be signed in to change notification settings - Fork 30
Annotation processor does not run in Eclipse multi-project #17
Comments
Just realised I forgot to mention, I'm using Eclipse Mars with its built-in gradle support. |
Hmm, I haven't tried Buildship but I suppose it's a similar issue as the Gradle integration in IntelliJ: Eclipse configuration to automatically enable annotation processing is done by tasks set as dependencies of the You can manually run the |
Just tried with your project:
I also tried running the two tasks before importing the projects and it worked too; but again I had to force Eclipse to rebuild the project (first time fails, presumably because |
Reported this to JDT https://bugs.eclipse.org/bugs/show_bug.cgi?id=514055 |
@vogella Is annotation processing working for you? or you also moved away from eclipse? |
I opened another issue this time with mapstruct. Mine does not work even after turning annotation processors on or off |
@thekalinga Works fine for me with auto-value. See here: http://www.vogella.com/tutorials/EclipseGradle/article.html#annotation-processing-apt-with-gradle-in-eclipse |
@vogella Thanks. I'll check & see whats the difference between yours and mine |
I have a project where I'm trying to use Dagger 2 to generate DI sources in an Eclipse multi-project. I'm finding that the Dagger sources are not generated for my sub-project when I import the build into Eclipse.
I've replicated the issue in this standalone git repo: https://github.com/traggatt/AptTest
Notes:
aptProject
:Runner
depends on Dagger generated class,DaggerTestComponent
, the source code generation is clearly working ok in this context. (Indeed I can see the generated source code here:aptProject/build/generated/source/apt/main/aptProject
.)Before I converted my project into multi-project form, the Dagger sources generated into
.apt_generated
.The text was updated successfully, but these errors were encountered: