Skip to content

Commit 09978b3

Browse files
committed
Merge pull request #31190 from tudormarc
* pr/31190: Polish contribution Document that Lombok must be configured before our annotation processor Closes gh-31190
2 parents d7fa384 + d896d99 commit 09978b3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/configuration-metadata/annotation-processor.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ You could also let the AspectJ plugin run all the processing and disable annotat
5959
----
6060
====
6161

62+
[NOTE]
63+
====
64+
If you are using Lombok in your project, you need to make sure that its annotation processor runs before `spring-boot-configuration-processor`.
65+
To do so with Maven, you can list the annotation processors in the right order using the `annotationProcessors` attribute of the Maven compiler plugin.
66+
If you are not using this attribute, and annotation processors are picked up by the dependencies available on the classpath, make sure that the `lombok` dependency is defined before the `spring-boot-configuration-processor` dependency.
67+
====
68+
6269

6370

6471
[[appendix.configuration-metadata.annotation-processor.automatic-metadata-generation]]

0 commit comments

Comments
 (0)