Project Lombok is cool, but it's not installed by default for most of the IDEs. So a simple installation process might be required.
For STS/Eclipse
- We may download the
lombok.jar
from here, or use the one in your~/.m2/repository/org/projectlombok/
folder; - Run
java -jar <THE-PATH-TO-YOUR-JAR>
; - It will prompt up an UI for you to pick up what IDEs (e.g. Eclipse, STS) to install for, choose yours;
- Click install button and it's done.
Note: for STS/Eclipse, it will actually copy the jar file to IDE's folder and update its .ini file. For example, it adds below in
/Applications/STS.app/Contents/Eclipse/STS.ini
file:
...
-javaagent:/Applications/STS.app/Contents/Eclipse/lombok.jar
For VS Code
There is an addon we can install to make VS Code have lombok support.
Search this addon by keyword lombok
will do.