|
262 | 262 | <arg>${warnings}</arg> |
263 | 263 | <arg>--should-stop=ifError=FLOW</arg> |
264 | 264 | <arg>-XDcompilePolicy=simple</arg> |
265 | | - <arg> |
266 | | - -Xplugin:ErrorProne |
267 | | - -Xep:AlmostJavadoc:OFF |
268 | | - -Xep:MissingSummary:OFF |
269 | | - -Xep:LongDoubleConversion:OFF |
270 | | - -Xep:StringSplitter:OFF |
271 | | - -XepExcludedPaths:(.*/generated/.*|.*/src/test/java/.*|.*/examples/.*|.*/integration-tests/.*) |
272 | | - -XepOpt:NullAway:AnnotatedPackages=io.prometheus.metrics |
273 | | - </arg> |
274 | 265 | </compilerArgs> |
275 | | - <annotationProcessorPaths> |
276 | | - <path> |
277 | | - <groupId>com.google.errorprone</groupId> |
278 | | - <artifactId>error_prone_core</artifactId> |
279 | | - <version>2.46.0</version> |
280 | | - </path> |
281 | | - <path> |
282 | | - <groupId>com.uber.nullaway</groupId> |
283 | | - <artifactId>nullaway</artifactId> |
284 | | - <version>0.12.15</version> |
285 | | - </path> |
286 | | - <!-- Other annotation processors go here. |
287 | | -
|
288 | | - If 'annotationProcessorPaths' is set, processors will no longer be |
289 | | - discovered on the regular -classpath; see also 'Using Error Prone |
290 | | - together with other annotation processors' below. --> |
291 | | - </annotationProcessorPaths> |
292 | 266 | </configuration> |
293 | 267 | </plugin> |
294 | 268 | <plugin> |
|
449 | 423 | </plugins> |
450 | 424 | </build> |
451 | 425 | </profile> |
| 426 | + <profile> |
| 427 | + <id>errorprone</id> |
| 428 | + <activation> |
| 429 | + <jdk>[21,)</jdk> |
| 430 | + </activation> |
| 431 | + <build> |
| 432 | + <plugins> |
| 433 | + <plugin> |
| 434 | + <artifactId>maven-compiler-plugin</artifactId> |
| 435 | + <configuration> |
| 436 | + <compilerArgs combine.children="append"> |
| 437 | + <arg> |
| 438 | + -Xplugin:ErrorProne |
| 439 | + -Xep:AlmostJavadoc:OFF |
| 440 | + -Xep:MissingSummary:OFF |
| 441 | + -Xep:LongDoubleConversion:OFF |
| 442 | + -Xep:StringSplitter:OFF |
| 443 | + -XepExcludedPaths:(.*/generated/.*|.*/src/test/java/.*|.*/examples/.*|.*/integration-tests/.*) |
| 444 | + -XepOpt:NullAway:AnnotatedPackages=io.prometheus.metrics |
| 445 | + </arg> |
| 446 | + </compilerArgs> |
| 447 | + <annotationProcessorPaths> |
| 448 | + <path> |
| 449 | + <groupId>com.google.errorprone</groupId> |
| 450 | + <artifactId>error_prone_core</artifactId> |
| 451 | + <version>2.46.0</version> |
| 452 | + </path> |
| 453 | + <path> |
| 454 | + <groupId>com.uber.nullaway</groupId> |
| 455 | + <artifactId>nullaway</artifactId> |
| 456 | + <version>0.12.15</version> |
| 457 | + </path> |
| 458 | + </annotationProcessorPaths> |
| 459 | + </configuration> |
| 460 | + </plugin> |
| 461 | + </plugins> |
| 462 | + </build> |
| 463 | + </profile> |
452 | 464 | <profile> |
453 | 465 | <id>release</id> |
454 | 466 | <build> |
|
0 commit comments