|
64 | 64 | <maven.dependency.version>3.1.1</maven.dependency.version>
|
65 | 65 | <maven.gpg.version>1.6</maven.gpg.version>
|
66 | 66 | <maven.checkstyle.version>3.0.0</maven.checkstyle.version>
|
67 |
| - <findbugs.version>3.0.5</findbugs.version> |
| 67 | + <spotbugs.version>3.1.12</spotbugs.version> |
68 | 68 | <sonatype.nexus.staging>1.6.3</sonatype.nexus.staging>
|
69 | 69 | <jacoco.version>0.7.9</jacoco.version>
|
70 | 70 | <license.maven.version>2.11</license.maven.version>
|
|
263 | 263 | <groupId>org.slf4j</groupId>
|
264 | 264 | <artifactId>slf4j-log4j12</artifactId>
|
265 | 265 | </exclusion>
|
266 |
| - <exclusion> |
267 |
| - <groupId>com.github.spotbugs</groupId> |
268 |
| - <artifactId>spotbugs-annotations</artifactId> |
269 |
| - </exclusion> |
270 | 266 | </exclusions>
|
271 | 267 | </dependency>
|
272 | 268 | <dependency>
|
|
384 | 380 | <version>${gson.version}</version>
|
385 | 381 | <scope>test</scope>
|
386 | 382 | </dependency>
|
| 383 | + <dependency> |
| 384 | + <groupId>com.github.spotbugs</groupId> |
| 385 | + <artifactId>spotbugs-annotations</artifactId> |
| 386 | + <version>${spotbugs.version}</version> |
| 387 | + </dependency> |
387 | 388 | </dependencies>
|
388 | 389 | </dependencyManagement>
|
389 | 390 |
|
|
588 | 589 | </configuration>
|
589 | 590 | </plugin>
|
590 | 591 | <plugin>
|
591 |
| - <groupId>org.codehaus.mojo</groupId> |
592 |
| - <artifactId>findbugs-maven-plugin</artifactId> |
593 |
| - <version>${findbugs.version}</version> |
| 592 | + <groupId>com.github.spotbugs</groupId> |
| 593 | + <artifactId>spotbugs-maven-plugin</artifactId> |
| 594 | + <version>3.1.12</version><dependencies> |
| 595 | + <!-- overwrite dependency on spotbugs if you want to specify the version of˓→spotbugs --> |
| 596 | + <dependency> |
| 597 | + <groupId>com.github.spotbugs</groupId> |
| 598 | + <artifactId>spotbugs</artifactId> |
| 599 | + <version>${spotbugs.version}</version> |
| 600 | + </dependency></dependencies> |
594 | 601 | <configuration>
|
595 |
| - <!-- |
596 |
| - Enables analysis which takes more memory but finds more bugs. |
597 |
| - If you run out of memory, changes the value of the effort element |
598 |
| - to 'Low'. |
599 |
| - --> |
600 | 602 | <effort>Max</effort>
|
601 | 603 | <!-- Reports all bugs (other values are medium and max) -->
|
602 | 604 | <threshold>Low</threshold>
|
603 | 605 | <!-- Produces XML report -->
|
604 | 606 | <xmlOutput>true</xmlOutput>
|
605 | 607 | <!-- Configures the directory in which the XML report is created -->
|
606 |
| - <findbugsXmlOutputDirectory>${project.build.directory}/findbugs</findbugsXmlOutputDirectory> |
| 608 | + <spotbugsXmlOutputDirectory>${project.build.directory}/spotbugs</spotbugsXmlOutputDirectory> |
607 | 609 | <!-- Configures the file for excluding warnings -->
|
608 |
| - <excludeFilterFile>${project.basedir}/../.findbugs/findbugs-exclude.xml</excludeFilterFile> |
| 610 | + <excludeFilterFile>${project.basedir}/../.spotbugs/spotbugs-exclude.xml</excludeFilterFile> |
609 | 611 | </configuration>
|
610 | 612 | </plugin>
|
611 | 613 | <plugin>
|
|
0 commit comments