

You could also try lombok and/or mapstruct. I see you already tried filing against gradle-apt plugin. While I don't use lombok myself I just happened to be aware of the lombok Eclipse extension that some people use to get lombok eclipse integration. I was just questioning whether you need it to work inside of Eclipse too. No I think you will always need the annotation processors to be part of your gradle build for the build on the CLI to work. Is there another way to build without lombok as a annotation processor dependency? Lombok is required when we need to build from the terminal using gradle. Here's some info about the setup of lombok with the java agent I'm not sure that just configuring the annotation processor designed for CLI use is expected to work in Eclipse environment (as noted earlier, eclipse compiler is more complex than the typical CLI invocation of Javac and many annotation processor do not work properly).
#Lombok annotations not working eclipse install
Typically people using lombok in Eclipse install something directly into eclipse (lombok provides an installer that will modify your eclipse, under the hood it adds a java agent to Eclipse's startup which actually modifies/patches the eclipse compiler). I have not seen anyone else try that before. I am a bit surprised that you are trying to use lombok as an annotation processor inside of Eclipse. Similarly can you get lombok processor to work by itself?įinally. without introducing lombok in the mix as well). can you get the mapstruct processor to work by itself (i.e. Perhaps we can to try to isolate and pinpoint the problem. If it works there then its probably something in STS causing this.Īnother thing could be tried is to remove some pieces from the setup you have.

One thing could try is if it works correctly in a 'vanilla' eclipse with buildship. Maybe some experiments can be done to try and get more information. It may require to actually debug the annotation processors themselves to see why they aren't working. It really anyone's guess what is going wrong here. Many annotation processors have not been designed / implemented / tested by their authors in incremental build scenarios and don't work correctly. A difference between running builds on the commandline or via IntelliJ is that they typically do 'whole project builds' only.

You can see this Help -> About Spring Tool Suite

I'm using STS with lombok plugin installed.
