|
60 | 60 | <gmavenplus.version>1.13.1</gmavenplus.version>
|
61 | 61 | <maven-processor-plugin.version>4.2</maven-processor-plugin.version>
|
62 | 62 | <modernizer-maven-plugin.version>2.3.0</modernizer-maven-plugin.version>
|
| 63 | + <puppycrawl.checkstyle.config.file>src/main/resources/checkstyle.xml</puppycrawl.checkstyle.config.file> |
| 64 | + <google.error-prone.compiler.version>2.14.0</google.error-prone.compiler.version> |
| 65 | + |
63 | 66 | </properties>
|
64 | 67 |
|
65 | 68 |
|
|
202 | 205 | </dependencyManagement>
|
203 | 206 |
|
204 | 207 | <build>
|
205 |
| - <plugins> |
206 |
| - <plugin> |
207 |
| - <groupId>org.gaul</groupId> |
208 |
| - <artifactId>modernizer-maven-plugin</artifactId> |
209 |
| - <version>${modernizer-maven-plugin.version}</version> |
210 |
| - <executions> |
211 |
| - <execution> |
212 |
| - <id>modernizer</id> |
213 |
| - <phase>package</phase> |
214 |
| - <goals> |
215 |
| - <goal>modernizer</goal> |
216 |
| - </goals> |
217 |
| - </execution> |
218 |
| - </executions> |
219 |
| - <configuration> |
220 |
| - <javaVersion>${java.version}</javaVersion> |
221 |
| - </configuration> |
222 |
| - </plugin> |
223 |
| - </plugins> |
| 208 | + <pluginManagement> |
| 209 | + <plugins> |
| 210 | + <plugin> |
| 211 | + <groupId>org.gaul</groupId> |
| 212 | + <artifactId>modernizer-maven-plugin</artifactId> |
| 213 | + <version>${modernizer-maven-plugin.version}</version> |
| 214 | + <executions> |
| 215 | + <execution> |
| 216 | + <id>modernizer</id> |
| 217 | + <phase>package</phase> |
| 218 | + <goals> |
| 219 | + <goal>modernizer</goal> |
| 220 | + </goals> |
| 221 | + </execution> |
| 222 | + </executions> |
| 223 | + <configuration> |
| 224 | + <javaVersion>${java.version}</javaVersion> |
| 225 | + </configuration> |
| 226 | + </plugin> |
| 227 | + |
| 228 | + <plugin> |
| 229 | + <groupId>org.apache.maven.plugins</groupId> |
| 230 | + <artifactId>maven-checkstyle-plugin</artifactId> |
| 231 | + <version>${maven.checkstyle.plugin.version}</version> |
| 232 | + <configuration> |
| 233 | + <configLocation>${puppycrawl.checkstyle.config.file}</configLocation> |
| 234 | + </configuration> |
| 235 | + <dependencies> |
| 236 | + <dependency> |
| 237 | + <groupId>com.puppycrawl.tools</groupId> |
| 238 | + <artifactId>checkstyle</artifactId> |
| 239 | + <version>${puppycrawl.checkstyle.version}</version> |
| 240 | + </dependency> |
| 241 | + </dependencies> |
| 242 | + <executions> |
| 243 | + <execution> |
| 244 | + <id>verify-checkstyle</id> |
| 245 | + <phase>test-compile</phase> |
| 246 | + <goals> |
| 247 | + <goal>check</goal> |
| 248 | + </goals> |
| 249 | + </execution> |
| 250 | + </executions> |
| 251 | + </plugin> |
| 252 | + |
| 253 | + <plugin> |
| 254 | + <groupId>org.gaul</groupId> |
| 255 | + <artifactId>modernizer-maven-plugin</artifactId> |
| 256 | + <version>${modernizer-maven-plugin.version}</version> |
| 257 | + <executions> |
| 258 | + <execution> |
| 259 | + <id>modernizer</id> |
| 260 | + <phase>test-compile</phase> |
| 261 | + <goals> |
| 262 | + <goal>modernizer</goal> |
| 263 | + </goals> |
| 264 | + </execution> |
| 265 | + </executions> |
| 266 | + <configuration> |
| 267 | + <javaVersion>${java.version}</javaVersion> |
| 268 | + <includeTestClasses>false</includeTestClasses> |
| 269 | + </configuration> |
| 270 | + </plugin> |
| 271 | + |
| 272 | + <plugin> |
| 273 | + <groupId>com.github.spotbugs</groupId> |
| 274 | + <artifactId>spotbugs-maven-plugin</artifactId> |
| 275 | + <executions> |
| 276 | + <execution> |
| 277 | + <id>verify-spotbugs</id> |
| 278 | + <phase>test-compile</phase> |
| 279 | + <goals> |
| 280 | + <goal>check</goal> |
| 281 | + </goals> |
| 282 | + </execution> |
| 283 | + </executions> |
| 284 | + <configuration> |
| 285 | + <excludeFilterFile>spot-bugs.filter-exclude.xml</excludeFilterFile> |
| 286 | + <includeTests>false</includeTests> |
| 287 | + </configuration> |
| 288 | + </plugin> |
| 289 | + </plugins> |
| 290 | + </pluginManagement> |
224 | 291 | </build>
|
225 | 292 |
|
226 | 293 | <!-- <repositories>-->
|
|
0 commit comments