Document that Lombok must be configured before our annotation processor

See gh-31190
This commit is contained in:
tudormarc 2022-05-27 16:30:52 +03:00 committed by Stephane Nicoll
parent d7fa384c5f
commit e313aa5f6c

View File

@ -59,6 +59,29 @@ You could also let the AspectJ plugin run all the processing and disable annotat
----
====
[NOTE]
====
If you are also using lombok in your project, you need to make sure that the `lombok` dependency is placed before the `spring-boot-configuration-processor` dependency.
Otherwise, combining `lombok` annotations with `spring-boot-configuration-processor` annotations will not have the desired result.
[source,xml,indent=0,subs="verbatim"]
----
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>provided</scope>
</dependency>
...............
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
----
====
[[appendix.configuration-metadata.annotation-processor.automatic-metadata-generation]]