Skip to content

Commit d896d99

Browse files
committed
Polish contribution
See gh-31190
1 parent e313aa5 commit d896d99

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

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

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -61,25 +61,9 @@ You could also let the AspectJ plugin run all the processing and disable annotat
6161

6262
[NOTE]
6363
====
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-
----
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.
8367
====
8468

8569

0 commit comments

Comments
 (0)