|
95 | 95 | <spring-asciidoctor-backends.version>0.0.6</spring-asciidoctor-backends.version> |
96 | 96 |
|
97 | 97 | <!-- plugin versions --> |
98 | | - <maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version> |
| 98 | + <maven-compiler-plugin.version>3.14.1</maven-compiler-plugin.version> |
99 | 99 | <maven-surefire-plugin.version>3.1.2</maven-surefire-plugin.version> |
100 | 100 | <maven-failsafe-plugin.version>3.1.2</maven-failsafe-plugin.version> |
101 | 101 | <maven-flatten-plugin.version>1.6.0</maven-flatten-plugin.version> |
|
111 | 111 | <maven-site-plugin.version>4.0.0-M13</maven-site-plugin.version> |
112 | 112 | <maven-project-info-reports-plugin.version>3.4.5</maven-project-info-reports-plugin.version> |
113 | 113 | <maven-jar-plugin.version>3.3.0</maven-jar-plugin.version> |
| 114 | + <!-- Nullability plugins --> |
| 115 | + <error-prone.version>2.44.0</error-prone.version> |
| 116 | + <nullaway.version>0.12.12</nullaway.version> |
114 | 117 | <!-- BEGIN format + checkstyle properties --> |
115 | 118 | <spring-javaformat-maven-plugin.version>0.0.43</spring-javaformat-maven-plugin.version> |
116 | 119 | <maven-checkstyle-plugin.version>3.6.0</maven-checkstyle-plugin.version> |
|
193 | 196 | <version>${maven-compiler-plugin.version}</version> |
194 | 197 | <configuration> |
195 | 198 | <release>${java.version}</release> |
| 199 | + <showWarnings>true</showWarnings> |
196 | 200 | <compilerArgs> |
197 | 201 | <compilerArg>-parameters</compilerArg> |
| 202 | + <compilerArg>-Xdoclint:none</compilerArg> |
| 203 | + <compilerArg>-Werror</compilerArg> |
| 204 | + <compilerArg>-XDcompilePolicy=simple</compilerArg> |
| 205 | + <compilerArg>--should-stop=ifError=FLOW</compilerArg> |
| 206 | + <compilerArg> |
| 207 | + -Xplugin:ErrorProne |
| 208 | + <!-- Disable all built-in error prone checks --> |
| 209 | + -XepDisableAllChecks |
| 210 | + <!-- JSpecify mode https://github.com/uber/NullAway/wiki/JSpecify-Support --> |
| 211 | + -XepOpt:NullAway:JSpecifyMode=true |
| 212 | + <!-- Check JSpecify annotations --> |
| 213 | + -Xep:NullAway:ERROR |
| 214 | + -XepOpt:NullAway:OnlyNullMarked |
| 215 | + -XepOpt:NullAway:TreatGeneratedAsUnannotated=true |
| 216 | + <!-- https://github.com/uber/NullAway/issues/162 --> |
| 217 | + -XepExcludedPaths:.*/src/test/java/.* |
| 218 | + </compilerArg> |
198 | 219 | </compilerArgs> |
| 220 | + <annotationProcessorPaths> |
| 221 | + <path> |
| 222 | + <groupId>com.google.errorprone</groupId> |
| 223 | + <artifactId>error_prone_core</artifactId> |
| 224 | + <version>${error-prone.version}</version> |
| 225 | + </path> |
| 226 | + <path> |
| 227 | + <groupId>com.uber.nullaway</groupId> |
| 228 | + <artifactId>nullaway</artifactId> |
| 229 | + <version>${nullaway.version}</version> |
| 230 | + </path> |
| 231 | + </annotationProcessorPaths> |
199 | 232 | </configuration> |
200 | 233 | </plugin> |
201 | 234 | <plugin> |
|
0 commit comments