|
37 | 37 |
|
38 | 38 | <archunit.version>1.4.0</archunit.version> |
39 | 39 | <artifactory-maven-plugin.version>3.6.2</artifactory-maven-plugin.version> |
| 40 | + <errorprone.version>2.36.0</errorprone.version> |
40 | 41 | <flapdoodle-mongodb.version>4.16.1</flapdoodle-mongodb.version> |
41 | 42 | <jgit.version>7.0.0.202409031743-r</jgit.version> |
42 | 43 | <jgrapht.version>1.5.2</jgrapht.version> |
43 | 44 | <jmolecules-bom.version>2023.3.1</jmolecules-bom.version> |
| 45 | + <nullaway.version>0.12.7</nullaway.version> |
44 | 46 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
45 | 47 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
46 | 48 | <spring-boot.version>4.0.0-SNAPSHOT</spring-boot.version> |
@@ -431,6 +433,54 @@ limitations under the License. |
431 | 433 | </build> |
432 | 434 | </profile> |
433 | 435 |
|
| 436 | + <profile> |
| 437 | + <id>nullaway</id> |
| 438 | + <build> |
| 439 | + <plugins> |
| 440 | + <plugin> |
| 441 | + <groupId>org.apache.maven.plugins</groupId> |
| 442 | + <artifactId>maven-compiler-plugin</artifactId> |
| 443 | + <configuration> |
| 444 | + <showWarnings>true</showWarnings> |
| 445 | + |
| 446 | + </configuration> |
| 447 | + <executions> |
| 448 | + <execution> |
| 449 | + <id>default-compile</id> |
| 450 | + <phase>none</phase> |
| 451 | + </execution> |
| 452 | + <execution> |
| 453 | + <id>java-compile</id> |
| 454 | + <phase>compile</phase> |
| 455 | + <goals> |
| 456 | + <goal>compile</goal> |
| 457 | + </goals> |
| 458 | + <configuration> |
| 459 | + <annotationProcessorPaths> |
| 460 | + <path> |
| 461 | + <groupId>com.google.errorprone</groupId> |
| 462 | + <artifactId>error_prone_core</artifactId> |
| 463 | + <version>${errorprone.version}</version> |
| 464 | + </path> |
| 465 | + <path> |
| 466 | + <groupId>com.uber.nullaway</groupId> |
| 467 | + <artifactId>nullaway</artifactId> |
| 468 | + <version>${nullaway.version}</version> |
| 469 | + </path> |
| 470 | + </annotationProcessorPaths> |
| 471 | + <compilerArgs> |
| 472 | + <arg>-XDcompilePolicy=simple</arg> |
| 473 | + <arg>--should-stop=ifError=FLOW</arg> |
| 474 | + <arg>-Xplugin:ErrorProne -XepDisableAllChecks -Xep:NullAway:ERROR -XepOpt:NullAway:OnlyNullMarked=true -XepOpt:NullAway:CustomContractAnnotations=org.springframework.lang.Contract</arg> |
| 475 | + </compilerArgs> |
| 476 | + </configuration> |
| 477 | + </execution> |
| 478 | + </executions> |
| 479 | + </plugin> |
| 480 | + </plugins> |
| 481 | + </build> |
| 482 | + </profile> |
| 483 | + |
434 | 484 | </profiles> |
435 | 485 |
|
436 | 486 | <dependencies> |
|
0 commit comments