Skip to content

Document that when using Lombok it must be configured to run before spring-boot-configuration-processor #31190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down