Skip to content

Commit 3e4b25f

Browse files
committed
fix: improve Lombok configuration per Spring Boot best practices
1 parent f5acdf4 commit 3e4b25f

2 files changed

Lines changed: 14 additions & 7 deletions

File tree

5.93 KB
Binary file not shown.

friendly-id-samples/friendly-id-spring-boot-customized/pom.xml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<dependency>
3838
<groupId>org.projectlombok</groupId>
3939
<artifactId>lombok</artifactId>
40-
<scope>provided</scope>
40+
<optional>true</optional>
4141
</dependency>
4242

4343
<dependency>
@@ -55,23 +55,30 @@
5555
<build>
5656
<plugins>
5757
<plugin>
58-
<groupId>org.springframework.boot</groupId>
59-
<artifactId>spring-boot-maven-plugin</artifactId>
60-
</plugin>
61-
<plugin>
58+
<groupId>org.apache.maven.plugins</groupId>
6259
<artifactId>maven-compiler-plugin</artifactId>
63-
<version>3.14.0</version>
6460
<configuration>
6561
<parameters>true</parameters>
6662
<annotationProcessorPaths>
6763
<path>
6864
<groupId>org.projectlombok</groupId>
6965
<artifactId>lombok</artifactId>
70-
<version>${lombok.version}</version>
7166
</path>
7267
</annotationProcessorPaths>
7368
</configuration>
7469
</plugin>
70+
<plugin>
71+
<groupId>org.springframework.boot</groupId>
72+
<artifactId>spring-boot-maven-plugin</artifactId>
73+
<configuration>
74+
<excludes>
75+
<exclude>
76+
<groupId>org.projectlombok</groupId>
77+
<artifactId>lombok</artifactId>
78+
</exclude>
79+
</excludes>
80+
</configuration>
81+
</plugin>
7582
<plugin>
7683
<groupId>org.apache.maven.plugins</groupId>
7784
<artifactId>maven-surefire-plugin</artifactId>

0 commit comments

Comments
 (0)