Skip to content

Commit

Permalink
migrate from findbugs to spotbugs graphhopper#694
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Sep 14, 2018
1 parent ea85daf commit a6fb163
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ before_script:
- "mvn --version"
- "if [ -z \"$API_KEY\" ]; then API_KEY=78da6e9a-273e-43d1-bdda-8f24e007a1fa; fi" # change in GraphHopperWebIT too
script:
- "mvn -Dkey=$API_KEY clean test verify checkstyle:check findbugs:check forbiddenapis:check -B"
- "mvn -Dkey=$API_KEY clean test verify checkstyle:check spotbugs:check forbiddenapis:check -B"

after_success:
# deploy snapshot artifacts to sonatype and if tagged deploy then release to maven central
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ install:
build_script:
- mvn clean install -DskipTests=true -B
test_script:
- mvn test verify -B && mvn checkstyle:check findbugs:check forbiddenapis:check -B
- mvn test verify -B && mvn checkstyle:check spotbugs:check forbiddenapis:check -B
cache:
- C:\maven\
- C:\Users\appveyor\.m2
File renamed without changes.
16 changes: 12 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,21 @@
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.5</version>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>3.1.6</version>
<!-- required as 3.1.7 is not yet released for the plugin but we hit problem spotbugs#711 -->
<dependencies>
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs</artifactId>
<version>3.1.7</version>
</dependency>
</dependencies>
<configuration>
<maxRank>4</maxRank>
<failOnError>true</failOnError>
<excludeFilterFile>core/files/findbugs-exclude.xml</excludeFilterFile>
<excludeFilterFile>core/files/spotbugs-exclude.xml</excludeFilterFile>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit a6fb163

Please sign in to comment.