-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Description
What problem are you trying to solve?
Ensure that the project is fully compatible with Java 25
What precondition(s) should be checked before applying this recipe?
- lombok is in the classpath
- The
maven-compiler-plugindoes not have lombok defined in theannotationProcessorPaths
Although this problem starts in Java 23+, it is still a good practice to define it explicitly
Describe the situation before applying the recipe
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.42</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
</plugins>
</build>Describe the situation after applying the recipe
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.42</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>Any additional context
The official documentation lombok suggests this configuration https://projectlombok.org/setup/maven
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status