Skip to content

Commit 5d771d4

Browse files
apache-hbsbiscigl
authored andcommitted
Add lombok annotation processor in maven to fix builds on recent jdk versions.
Since jdk23 lombok needs to be registered as an annotation processor explicitly otherwise it will not process java sources. This change applies the [lombok recommended method](https://projectlombok.org/setup/maven) of applying the annotation processor to fix builds on jdk23+
1 parent 10d3280 commit 5d771d4

File tree

1 file changed

+12
-1
lines changed
  • tools/code-generation/generator

1 file changed

+12
-1
lines changed

tools/code-generation/generator/pom.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
<name>AWS Client Generator</name>
1212
<url>http://aws.amazon.com</url>
1313

14+
<properties>
15+
<lombok.version>1.18.42</lombok.version>
16+
</properties>
17+
1418
<build>
1519
<plugins>
1620
<plugin>
@@ -20,6 +24,13 @@
2024
<configuration>
2125
<source>1.8</source>
2226
<target>1.8</target>
27+
<annotationProcessorPaths>
28+
<path>
29+
<groupId>org.projectlombok</groupId>
30+
<artifactId>lombok</artifactId>
31+
<version>${lombok.version}</version>
32+
</path>
33+
</annotationProcessorPaths>
2334
</configuration>
2435
</plugin>
2536
<plugin>
@@ -103,7 +114,7 @@
103114
<dependency>
104115
<groupId>org.projectlombok</groupId>
105116
<artifactId>lombok</artifactId>
106-
<version>1.18.30</version>
117+
<version>${lombok.version}</version>
107118
<scope>provided</scope>
108119
</dependency>
109120

0 commit comments

Comments
 (0)