Tag Archives: lombok

STS (Spring Tool Suite) Lombok Configuration


In your STS based application, you can follow the below STS Lombok Configuration to support you IDE for Project Lombok annotations.

Prerequisites

These are the pre-requisite of Project Lombok to configure in any applications and IDE.

Java >= 1.8
Gradle >= 4.x or Maven 3.6.x
Project Lombok >= 1.18.20

Ways to configure Lombok in STS

In this post, you will know about the three ways on configuring the Lombok in you STS IDE.

  • Manually configure the STS
  • STS Plugin for Lombok
  • STS Software Center

Manually Configure STS for Lombok

  • Download the lombok.jar from https://projectlombok.org/download
  • Place this lombok.jar in you root folder of STS installation location
  • Double click on the jar, it will open open popup as below. Select the IDE location by click “Specify location”
  • Click on “install/update” button.
STS Lombok Configuration
STS Lombok Configuration 1
  • Click on “Install/Update” button. On successful installation you will get below screen
  • Click on “Quit Installer”
  • Restart you STS IDE to refresh the Lombok features in case already open.
STS Lombok Configuration
STS Lombok Configuration 2

Lombok STS Configuration by Plug-in

You can install lombok directly from within STS, and in that way, you can also include lombok as part of your team STS deployment configuration.

Follow below steps to configure the Lombok STS configuration by plug-in

  • Go to your STS “Help->Search->Install New Software” as given
STS Lombok Configuration by plug-in
STS Lombok Configuration by plug-in
STS Lombok Configuration by plug-in
STS Lombok Configuration by plug-in
  • Select the Lombok Plug-in check boxes and click on install button
  • After Installation successful, Restart your STS IDE to refresh lombok features.

STS Lombok from Software Center

Some of the latest version of STS IDE already supports Lombok Project. In this case you don’t required any of above steps:

To check Lombok Support in STS IDE you can follow these steps:

  • Go to the about dialogue
  • Supported version on Lombok detail will display at last in “Copy Write” section as given in screenshot.
STS Lombok Configuration
STS Lombok Configuration

References

Conclusion

In this post you have learned about the multiple ways of Lombok Project configuration in you STS IDE.

Advertisements
Advertisements

Your Feedback Motivate Us

If our FacingIssuesOnIT Experts solutions guide you to resolve your issues and improve your knowledge. Please share your comments, like and subscribe to get notifications for our posts.

Happy Learning !!!

Eclipse Lombok Configuration


In your Eclipse based application, you can follow the below Eclipse Lombok Configuration to support you IDE for Project Lombok annotations.

Prerequisites

These are the pre-requisite of Project Lombok to configure in any applications and IDE.

Java >= 1.8
Gradle >= 4.x or Maven 3.6.x
Project Lombok >= 1.18.20

Ways to configure Lombok in Eclipse

In this post, you will know about the three ways on configuring the Lombok in you Eclipse IDE.

  • Manually configure the Eclipse
  • Eclipse Plugin for Lombok
  • Eclipse Software Center

Manually Configure Eclipse for Lombok

  • Download the lombok.jar from https://projectlombok.org/download
  • Place this lombok.jar in you root folder of eclipse installation location
  • Double click on the jar, it will open open popup as below. Select the IDE location by click “Specify location”
  • Click on “install/update” button.
Eclipse Lombok Configuration
Eclipse Lombok Configuration 1
  • Click on “Install/Update” button. On successful installation you will get below screen
  • Click on “Quit Installer”
  • Restart you eclipse IDE to refresh the Lombok features in case already open.
Eclipse Lombok Configuration
Eclipse Lombok Configuration 2

Lombok Eclipse Configuration by Plug-in

You can install lombok directly from within eclipse, and in that way, you can also include lombok as part of your team eclipse deployment configuration.

Follow below steps to configure the Lombok Eclipse configuration by plug-in

  • Go to your eclipse “Help->Search->Install New Software” as given
Eclipse Lombok Configuration by plug-in
Eclipse Lombok Configuration by plug-in
Eclipse Lombok Configuration by plug-in
Eclipse Lombok Configuration by plug-in
  • Select the Lombok Plug-in check boxes and click on install button
  • After Installation successful, Restart your eclipse IDE to refresh lombok features.

Eclipse Lombok from Software Center

Some of the latest version of Eclipse IDE already supports Lombok Project. In this case you don’t required any of above steps:

To check Lombok Support in eclipse IDE you can follow these steps:

  • Go to the about dialogue
  • Supported version on Lombok detail will display at last in “Copy Write” section as given in screenshot.
Eclipse Lombok Configuration
Eclipse Lombok Configuration

References

Conclusion

In this post you have learned about the multiple ways of Lombok Project configuration in you eclipse IDE.

Advertisements
Advertisements

Your Feedback Motivate Us

If our FacingIssuesOnIT Experts solutions guide you to resolve your issues and improve your knowledge. Please share your comments, like and subscribe to get notifications for our posts.

Happy Learning !!!

Ant Lombok Configuration


In your Ant based application, you can follow the below Ant Lombok Configuration by adding the following Ant dependencies in your build.xml.

Prerequisites

These are the pre-requisite of Project Lombok to configure in any applications and IDE.

Java >= 1.8
Gradle >= 4.x or Maven 3.6.x
Project Lombok >= 1.18.20
See Also:

Lombok Ant Dependency

You can add below Lombok dependency in you build.xml

<dependencies>
	<dependency org="org.projectlombok" name="lombok" rev="1.18.28" conf="build->master" />
</dependencies>

Lombok Ant Add Jar

you’ve to add lombok.jar in a lib dir, your javac task would have to look like below

<javac srcdir="src" destdir="build" source="1.8">
	<classpath location="lib/lombok.jar" />
</javac>

Note :you still have to download lombok.jar  and run it as a jar file, if you wish to program in eclipse. The plugin makes that part easier. Follow this link : Eclipse Lombok Configuration

References

Advertisements
Advertisements

Your Feedback Motivate Us

If our FacingIssuesOnIT Experts solutions guide you to resolve your issues and improve your knowledge. Please share your comments, like and subscribe to get notifications for our posts.

Happy Learning !!!