Skip to content

Commit 03f4ccb

Browse files
Add Maven compiler plugin configuration for Lombok
1 parent ebfef20 commit 03f4ccb

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

spring-caffeine-example/pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
<groupId>org.projectlombok</groupId>
5757
<artifactId>lombok</artifactId>
5858
<version>${lombok.version}</version>
59+
<scope>provided</scope>
5960
</dependency>
6061

6162
<dependency>
@@ -87,6 +88,23 @@
8788
<artifactId>spring-boot-maven-plugin</artifactId>
8889
<version>${spring.boot.version}</version>
8990
</plugin>
91+
92+
<plugin>
93+
<groupId>org.apache.maven.plugins</groupId>
94+
<artifactId>maven-compiler-plugin</artifactId>
95+
<version>3.15.0</version>
96+
<configuration>
97+
<release>${java.version}</release>
98+
<annotationProcessorPaths>
99+
<path>
100+
<groupId>org.projectlombok</groupId>
101+
<artifactId>lombok</artifactId>
102+
<version>${lombok.version}</version>
103+
</path>
104+
</annotationProcessorPaths>
105+
</configuration>
106+
</plugin>
107+
90108
</plugins>
91109

92110
</build>

0 commit comments

Comments
 (0)