Skip to content

Commit e313aa5

Browse files
tudormarcsnicoll
authored andcommitted
Document that Lombok must be configured before our annotation processor
See gh-31190
1 parent d7fa384 commit e313aa5

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

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

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

62+
[NOTE]
63+
====
64+
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.
65+
Otherwise, combining `lombok` annotations with `spring-boot-configuration-processor` annotations will not have the desired result.
66+
67+
[source,xml,indent=0,subs="verbatim"]
68+
----
69+
<dependency>
70+
<groupId>org.projectlombok</groupId>
71+
<artifactId>lombok</artifactId>
72+
<scope>provided</scope>
73+
</dependency>
74+
75+
...............
76+
77+
<dependency>
78+
<groupId>org.springframework.boot</groupId>
79+
<artifactId>spring-boot-configuration-processor</artifactId>
80+
<optional>true</optional>
81+
</dependency>
82+
----
83+
====
84+
6285

6386

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

0 commit comments

Comments
 (0)