Home > database >  How to use Lombok plugin in IntelliJ 2021.2.2?
How to use Lombok plugin in IntelliJ 2021.2.2?

Time:09-27

I am new to Java from c and I have been trying to familiarise myself with the language. I am trying to use the lombok plugin from IntelliJ IDEA but it does not seem to work for me at all:

Maven or Gradle project

  • Go to either enter image description here

    For Gradle: enter image description here

    1. Paste the text block into your pom.xml or build.gradle like so(don't forget to click the M that shows up that's hovered over by the cursor, this updates your project with the new dependency so you can use actually use lombok): enter image description here

    2. Now you should be able to use Lombok and make use of all it's boilerplate goodness :) enter image description here

    Let me know if this helped or if you got stuck on any of the step!

    • Related