Skip to content

Lombok and spring-boot-configuration-processor are ordered contrary to Boot's docs #2180

@wilkinsona

Description

@wilkinsona

Boot's docs instruct users to configure their project's annotations processor so that Lombok runs before spring-boot-configuration-processor:

If you are using Lombok in your project, you need to make sure that its annotation processor runs before spring-boot-configuration-processor. To do so with Maven, list the annotation processors in the required order using the annotationProcessors attribute of the Maven compiler plugin. With Gradle, declare the dependencies in the annotationProcessor configuration in the required order.

start.spring.io does not do this for either Maven or Gradle with, as far as I can tell, the generated configuration always resulting in Lombok running second. See spring-projects/spring-boot#50121 for an example of a problem that this can cause.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions