Hello there,
I’m currently trying to get my own annotation processor to work properly and run into issues when using eclipse.
My setup is the following:
- I have a main project
- I have a subproject called “ap” that contains an annotation processor, to generate classes. This project also contains a few annotations that drive the class generation.
- The main project depends on ap. Gradle generates ap.jar, and then used that jar to load the annotation processor.
The problem:
When I edit the annotation processor files, I want eclipse to compile the new annotation processor and then also actually use it.
I managed to get gradle to recreate the ap.jar when I modify the processor files in my latest commit. Although eclipse still uses the old annotation processor until I “refresh the project” (F5) or restart eclipse.
Also useful would be if eclipse would automatically regenerate all the files the annotation processor created, since its logic changed they will be different.
An idea how I would achieve that?
Here is my
build.gradle, and the entire project.
Regards,
Fabian