Skip to content

Commit fe30aed

Browse files
authored
test: Add spotbugs and checkstyle maven plugins for Travis CI (#496)
1 parent 89be5ee commit fe30aed

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ install:
77
cp target/sendgrid-java-$(VERSION)-shaded.jar sendgrid-java.jar
88

99
test:
10-
mvn test
10+
mvn test spotbugs:spotbugs checkstyle:check -Dcheckstyle.config.location=google_checks.xml
1111

1212
test-integ: test
1313

pom.xml

+22-1
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,18 @@
259259
</execution>
260260
</executions>
261261
</plugin>
262+
<plugin>
263+
<groupId>com.github.spotbugs</groupId>
264+
<artifactId>spotbugs-maven-plugin</artifactId>
265+
<version>4.0.4</version>
266+
<dependencies>
267+
<dependency>
268+
<groupId>com.github.spotbugs</groupId>
269+
<artifactId>spotbugs</artifactId>
270+
<version>4.0.4</version>
271+
</dependency>
272+
</dependencies>
273+
</plugin>
262274
</plugins>
263275
</build>
264276
<developers>
@@ -309,4 +321,13 @@
309321
<version>1.66</version>
310322
</dependency>
311323
</dependencies>
312-
</project>
324+
<reporting>
325+
<plugins>
326+
<plugin>
327+
<groupId>org.apache.maven.plugins</groupId>
328+
<artifactId>maven-checkstyle-plugin</artifactId>
329+
<version>3.0.0</version>
330+
</plugin>
331+
</plugins>
332+
</reporting>
333+
</project>

0 commit comments

Comments
 (0)