How to install/configure Lombok plugin on IntelliJ IDEA :
Steps :1) Installation
Using IDE built-in plugin system on Windows:
- File > Settings > Plugins > Browse repositories... > Search for "lombok" > Install Plugin
- Preferences > Settings > Plugins > Browse repositories... > Search for "lombok" > Install Plugin
- Download the latest release from https://github.com/mplushnikov/lombok-intellij-plugin
- Install it manually using Preferences > Plugins > Install plugin from disk...
3) Enable Annotation Processing
In your project: Click Preferences, "Build, Execution, Deployment", Compiler, Annotation Processors. Click Enable Annotation Processing
Enabling Annotation Processing on IntelliJ IDEA |
Optional) IntelliJ and Eclipse compiler
If you're using Eclipse compiler with lombok, try this setup:
- install plugin (above process)
- change compiler setting:
- > Compiler > Java Compiler > Use Compiler: Eclipse
- > Compiler > Annotation Processors > Enable annotation processing: checked (default configuration)
- > Compiler > Additional build process VM options: -javaagent:lombok.jar
References :
- https://github.com/mplushnikov/lombok-intellij-plugin
- http://stackoverflow.com/questions/24006937/lombok-annotations-do-not-compile-under-intellij-idea
- http://stackoverflow.com/questions/9424364/cant-compile-project-when-im-using-lombok-under-intellij-idea
- https://projectlombok.org/index.html
- https://projectlombok.org/mavenrepo/
No comments :
Post a Comment
Your Comment and Question will help to make this blog better...