How to add Lombok plugin to eclipse

Tags: , ,



I installed Lombok Plugin in Intellij. But I didn’t find any plugins in Eclipse to install. Mine is Oxygen Eclipse.
Is there any way to make the Lombok application to make work in Eclipse too.

Answer

By following the below steps I am done with eclipse setup.

  1. Download jar from https://projectlombok.org/
  2. Copy the lombok.jar into the root Eclipse folder and run the below command
    java -jar lombok-1.16.12.jar
  3. This will open a small UI, where the location of the Eclipse installation can be specified. Usually the Eclipse installation will be found automatically and lombok can be installed or updated. Just press the Install / Update button and restart the IDE. 


Source: stackoverflow