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
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 !!!
You must log in to post a comment.