Skip to content

Commit 0627251

Browse files
committed
Add Lombok annotation processing
1 parent a67e72c commit 0627251

7 files changed

Lines changed: 107 additions & 3 deletions

File tree

akka-project/pom.xml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,16 @@
5959
<scope>test</scope>
6060
</dependency>
6161

62-
<!-- Logging -->
62+
<!-- Lombok -->
6363
<dependency>
64-
<groupId>org.slf4j</groupId>
65-
<artifactId>slf4j-api</artifactId>
64+
<groupId>org.projectlombok</groupId>
65+
<artifactId>lombok</artifactId>
6666
</dependency>
6767

68+
<!-- Logging -->
69+
<!-- slf4j-api is included transitively by Spring Boot, but we need logback for implementation -->
70+
<!-- Spring Boot includes logback by default, but explicit dependency ensures consistency -->
71+
6872
<!-- Akka -->
6973
<dependency>
7074
<groupId>com.typesafe.akka</groupId>
@@ -91,6 +95,20 @@
9195
<version>${spring-boot.version}</version>
9296
</plugin>
9397

98+
<plugin>
99+
<artifactId>maven-compiler-plugin</artifactId>
100+
<version>${maven-compiler-plugin.version}</version>
101+
<configuration>
102+
<annotationProcessorPaths>
103+
<path>
104+
<groupId>org.projectlombok</groupId>
105+
<artifactId>lombok</artifactId>
106+
<version>${lombok.version}</version>
107+
</path>
108+
</annotationProcessorPaths>
109+
</configuration>
110+
</plugin>
111+
94112
<!-- https://github.com/spring-projects/spring-framework/issues/28699 -->
95113
<plugin>
96114
<artifactId>maven-surefire-plugin</artifactId>

custom-spring-boot-starter/greeter-spring-boot-sample-app/pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
<version>${project.version}</version>
2121
</dependency>
2222

23+
<dependency>
24+
<groupId>org.projectlombok</groupId>
25+
<artifactId>lombok</artifactId>
26+
</dependency>
27+
2328
<dependency>
2429
<groupId>org.springframework.boot</groupId>
2530
<artifactId>spring-boot-starter-test</artifactId>
@@ -28,6 +33,21 @@
2833
</dependencies>
2934

3035
<build>
36+
<plugins>
37+
<plugin>
38+
<artifactId>maven-compiler-plugin</artifactId>
39+
<version>${maven-compiler-plugin.version}</version>
40+
<configuration>
41+
<annotationProcessorPaths>
42+
<path>
43+
<groupId>org.projectlombok</groupId>
44+
<artifactId>lombok</artifactId>
45+
<version>${lombok.version}</version>
46+
</path>
47+
</annotationProcessorPaths>
48+
</configuration>
49+
</plugin>
50+
</plugins>
3151
<pluginManagement>
3252
<plugins>
3353
<plugin>

dagger-sample/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
<version>${maven-compiler-plugin.version}</version>
4242
<configuration>
4343
<annotationProcessorPaths>
44+
<path>
45+
<groupId>org.projectlombok</groupId>
46+
<artifactId>lombok</artifactId>
47+
<version>${lombok.version}</version>
48+
</path>
4449
<path>
4550
<groupId>com.google.dagger</groupId>
4651
<artifactId>dagger-compiler</artifactId>

grpc-sample/pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,19 @@
5757
</extension>
5858
</extensions>
5959
<plugins>
60+
<plugin>
61+
<artifactId>maven-compiler-plugin</artifactId>
62+
<version>${maven-compiler-plugin.version}</version>
63+
<configuration>
64+
<annotationProcessorPaths>
65+
<path>
66+
<groupId>org.projectlombok</groupId>
67+
<artifactId>lombok</artifactId>
68+
<version>${lombok.version}</version>
69+
</path>
70+
</annotationProcessorPaths>
71+
</configuration>
72+
</plugin>
6073
<plugin>
6174
<groupId>org.xolstice.maven.plugins</groupId>
6275
<artifactId>protobuf-maven-plugin</artifactId>

sound-recorder-n-spectrum-analyzer/pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,27 @@
3535
<artifactId>logback-classic</artifactId>
3636
<version>1.4.14</version>
3737
</dependency>
38+
<dependency>
39+
<groupId>org.projectlombok</groupId>
40+
<artifactId>lombok</artifactId>
41+
</dependency>
3842
</dependencies>
3943

4044
<build>
4145
<plugins>
46+
<plugin>
47+
<artifactId>maven-compiler-plugin</artifactId>
48+
<version>${maven-compiler-plugin.version}</version>
49+
<configuration>
50+
<annotationProcessorPaths>
51+
<path>
52+
<groupId>org.projectlombok</groupId>
53+
<artifactId>lombok</artifactId>
54+
<version>${lombok.version}</version>
55+
</path>
56+
</annotationProcessorPaths>
57+
</configuration>
58+
</plugin>
4259
<plugin>
4360
<artifactId>maven-assembly-plugin</artifactId>
4461
<version>3.6.0</version>

two-factor-authentication/pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,22 @@
2828
</dependency>
2929
</dependencies>
3030

31+
<build>
32+
<plugins>
33+
<plugin>
34+
<artifactId>maven-compiler-plugin</artifactId>
35+
<version>${maven-compiler-plugin.version}</version>
36+
<configuration>
37+
<annotationProcessorPaths>
38+
<path>
39+
<groupId>org.projectlombok</groupId>
40+
<artifactId>lombok</artifactId>
41+
<version>${lombok.version}</version>
42+
</path>
43+
</annotationProcessorPaths>
44+
</configuration>
45+
</plugin>
46+
</plugins>
47+
</build>
48+
3149
</project>

unit-tests-debugging/pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,19 @@
3535
</pluginManagement>
3636

3737
<plugins>
38+
<plugin>
39+
<artifactId>maven-compiler-plugin</artifactId>
40+
<version>${maven-compiler-plugin.version}</version>
41+
<configuration>
42+
<annotationProcessorPaths>
43+
<path>
44+
<groupId>org.projectlombok</groupId>
45+
<artifactId>lombok</artifactId>
46+
<version>${lombok.version}</version>
47+
</path>
48+
</annotationProcessorPaths>
49+
</configuration>
50+
</plugin>
3851
<!-- Used to run integration tests -->
3952
<plugin>
4053
<artifactId>maven-failsafe-plugin</artifactId>

0 commit comments

Comments
 (0)