Project Lombok is an innovative Java library where one can use shorthand to generate code. It has many useful features, such as:
hashCode
, equals
, and toString
methods for a POJO@Data
provides functionality similar to a Scala Case Class in Java@Value
is similar to @Data
, but for immutable classes@Builder
is a convenient way to add a Builder pattern to a POJOUsing Lombok can help by:
hashCode
or equals
since they are generated at build timeI volunteered to write and maintain the Lombok Maven Plugin, the official Maven Plugin for Project Lombok, because I found value in the project, but did not appreciate that it broke many of the Maven reports. The plugin can run delombok
against the source code at build time, translating the short-hand into Java code that can then be processed by other tools, such as JavaDoc, Source Xref, and Unit Testing reports.
This plugin is used by folks all over the world.
Project link: https://awhitford.github.io/lombok.maven/lombok-maven-plugin/