project lombok tutorial

Gradle Lombok Configuration

In your Gradle based application, you can follow the below Gradle Lombok Configuration by adding the following maven dependencies in your build.gradle.


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 Gradle Dependency

You can add below Lombok dependency in you build.gradle

dependencies {
	compileOnly 'org.projectlombok:lombok:1.18.20'
	annotationProcessor 'org.projectlombok:lombok:1.18.20'
	testCompileOnly 'org.projectlombok:lombok:1.18.20'
	testAnnotationProcessor 'org.projectlombok:lombok:1.18.20'

Now your application is all set for using the Lombok Annotations by adding above Gradle Lombok Configuration.

Note :

you still have to download lombok.jar (or find it in gradle’s caches) 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


Related Posts

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 !!!