Skip to content

Commit 032ee4d

Browse files
nikolas-charalambidisfiliphr
authored andcommitted
mapstruct#3374 Lombok compatibility documentation
1 parent f61a3ac commit 032ee4d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

documentation/src/main/asciidoc/chapter-14-third-party-api-integration.asciidoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ public @interface Default {
4646
MapStruct works together with https://projectlombok.org/[Project Lombok] as of MapStruct 1.2.0.Beta1 and Lombok 1.16.14.
4747

4848
MapStruct takes advantage of generated getters, setters, and constructors and uses them to generate the mapper implementations.
49+
Be reminded that the generated code by Lombok might not always be compatible with the expectations from the individual mappings.
50+
In such a case, either Mapstruct mapping must be changed or Lombok must be configured accordingly using https://projectlombok.org/features/configuration[`lombok.config`] for mutual synergy.
4951

50-
[NOTE]
52+
[WARNING]
5153
====
5254
Lombok 1.18.16 introduces a breaking change (https://projectlombok.org/changelog[changelog]).
5355
The additional annotation processor `lombok-mapstruct-binding` (https://mvnrepository.com/artifact/org.projectlombok/lombok-mapstruct-binding[Maven]) must be added otherwise MapStruct stops working with Lombok.

0 commit comments

Comments
 (0)