|
52 | 52 | <maven.compiler.source>17</maven.compiler.source> |
53 | 53 | <maven.compiler.target>17</maven.compiler.target> |
54 | 54 | <maven.compiler.release>17</maven.compiler.release> |
| 55 | + <lombok.version>1.18.42</lombok.version> |
55 | 56 | <gson.version>2.13.2</gson.version> |
56 | 57 | <httpclient.version>5.5.1</httpclient.version> |
57 | 58 | <lang3.version>3.19.0</lang3.version> |
|
111 | 112 | <artifactId>httpclient5</artifactId> |
112 | 113 | <version>${httpclient.version}</version> |
113 | 114 | </dependency> |
| 115 | + <dependency> |
| 116 | + <groupId>org.projectlombok</groupId> |
| 117 | + <artifactId>lombok</artifactId> |
| 118 | + <version>${lombok.version}</version> |
| 119 | + </dependency> |
114 | 120 | <dependency> |
115 | 121 | <groupId>com.google.code.gson</groupId> |
116 | 122 | <artifactId>gson</artifactId> |
|
234 | 240 | <runOrder>balanced</runOrder> |
235 | 241 | </configuration> |
236 | 242 | </plugin> |
| 243 | + <plugin> |
| 244 | + <groupId>org.projectlombok</groupId> |
| 245 | + <artifactId>lombok-maven-plugin</artifactId> |
| 246 | + <version>1.18.20.0</version> |
| 247 | + <executions> |
| 248 | + <execution> |
| 249 | + <id>delombok-sources</id> |
| 250 | + <phase>generate-sources</phase> |
| 251 | + <goals> |
| 252 | + <goal>delombok</goal> |
| 253 | + </goals> |
| 254 | + <configuration> |
| 255 | + <sourceDirectory>src/main/java</sourceDirectory> |
| 256 | + <outputDirectory>${project.build.directory}/delombok</outputDirectory> |
| 257 | + <addOutputDirectory>false</addOutputDirectory> |
| 258 | + <encoding>UTF-8</encoding> |
| 259 | + </configuration> |
| 260 | + </execution> |
| 261 | + </executions> |
| 262 | + <dependencies> |
| 263 | + <dependency> |
| 264 | + <groupId>org.projectlombok</groupId> |
| 265 | + <artifactId>lombok</artifactId> |
| 266 | + <version>${lombok.version}</version> |
| 267 | + </dependency> |
| 268 | + </dependencies> |
| 269 | + </plugin> |
| 270 | + <plugin> |
| 271 | + <groupId>org.apache.maven.plugins</groupId> |
| 272 | + <artifactId>maven-antrun-plugin</artifactId> |
| 273 | + <version>3.0.0</version> |
| 274 | + <executions> |
| 275 | + <execution> |
| 276 | + <id>generate-delomboked-sources-jar</id> |
| 277 | + <phase>package</phase> |
| 278 | + <goals> |
| 279 | + <goal>run</goal> |
| 280 | + </goals> |
| 281 | + <configuration> |
| 282 | + <target> |
| 283 | + <jar destfile="${project.build.directory}/${project.build.finalName}-sources.jar" basedir="${project.build.directory}/delombok"/> |
| 284 | + </target> |
| 285 | + </configuration> |
| 286 | + </execution> |
| 287 | + </executions> |
| 288 | + </plugin> |
237 | 289 | <plugin> |
238 | 290 | <groupId>org.codehaus.mojo</groupId> |
239 | 291 | <artifactId>versions-maven-plugin</artifactId> |
|
256 | 308 | <artifactId>build-helper-maven-plugin</artifactId> |
257 | 309 | <version>3.2.0</version> |
258 | 310 | <executions> |
| 311 | + <execution> |
| 312 | + <id>attach-delomboked-sources-jar</id> |
| 313 | + <phase>package</phase> |
| 314 | + <goals> |
| 315 | + <goal>attach-artifact</goal> |
| 316 | + </goals> |
| 317 | + <configuration> |
| 318 | + <artifacts> |
| 319 | + <artifact> |
| 320 | + <file>${project.build.directory}/${project.build.finalName}-sources.jar</file> |
| 321 | + <type>jar</type> |
| 322 | + <classifier>sources</classifier> |
| 323 | + </artifact> |
| 324 | + </artifacts> |
| 325 | + </configuration> |
| 326 | + </execution> |
259 | 327 | <execution> |
260 | 328 | <id>add-test-source</id> |
261 | 329 | <phase>generate-test-sources</phase> |
|
307 | 375 | </execution> |
308 | 376 | </executions> |
309 | 377 | <configuration> |
| 378 | + <sourcepath>${project.build.directory}/delombok</sourcepath> |
310 | 379 | <!--Disable warnings about missing docstrings.--> |
311 | 380 | <doclint>all,-missing</doclint> |
312 | 381 | </configuration> |
|
434 | 503 | </plugins> |
435 | 504 | </pluginManagement> |
436 | 505 | <plugins> |
| 506 | + <plugin> |
| 507 | + <groupId>org.projectlombok</groupId> |
| 508 | + <artifactId>lombok-maven-plugin</artifactId> |
| 509 | + </plugin> |
437 | 510 | <plugin> |
438 | 511 | <groupId>org.xolstice.maven.plugins</groupId> |
439 | 512 | <artifactId>protobuf-maven-plugin</artifactId> |
|
0 commit comments