From 08e74228c650aa198e79e6b0e6d959fe9ae2d56e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ros=C3=A1rio=20Pereira=20Fernandes?= Date: Fri, 12 Oct 2018 22:29:58 +0200 Subject: [PATCH 1/4] chore: add spotbugs and checkstyle maven plugins for Travis CI --- .travis.yml | 1 + pom.xml | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/.travis.yml b/.travis.yml index 944f6df3..e9661034 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,7 @@ before_install: - cat /etc/hosts # optionally check the content *after* after_script: - lsof -i :4010 -S # adds some debugging statements + - "mvn spotbugs:spotbugs checkstyle:check -Dcheckstyle.config.location=google_checks.xml" - "./gradlew build" - "./scripts/upload.sh" env: diff --git a/pom.xml b/pom.xml index 6a6619fa..4194e807 100644 --- a/pom.xml +++ b/pom.xml @@ -85,6 +85,18 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 3.1.3 + + + com.github.spotbugs + spotbugs + 3.1.3 + + + @@ -130,5 +142,14 @@ test + + + + org.apache.maven.plugins + maven-checkstyle-plugin + 3.0.0 + + + From 5086ce692e92c3bdcc93803d32d6279e7ad2184a Mon Sep 17 00:00:00 2001 From: childish-sambino Date: Wed, 12 Aug 2020 11:19:39 -0500 Subject: [PATCH 2/4] Update .travis.yml --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c1f58977..ff279202 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,8 +7,6 @@ env: - version=11 script: - make test-docker -after_script: - - mvn spotbugs:spotbugs checkstyle:check -Dcheckstyle.config.location=google_checks.xml deploy: - provider: script From e0ed7a33d814dde9fafddfe253e4f5c98c257c39 Mon Sep 17 00:00:00 2001 From: childish-sambino Date: Wed, 12 Aug 2020 11:20:01 -0500 Subject: [PATCH 3/4] Update pom.xml --- pom.xml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index 4418b563..f91a2e6e 100644 --- a/pom.xml +++ b/pom.xml @@ -150,18 +150,6 @@ - - com.github.spotbugs - spotbugs-maven-plugin - 3.1.3 - - - com.github.spotbugs - spotbugs - 3.1.3 - - - @@ -271,6 +259,18 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.0.4 + + + com.github.spotbugs + spotbugs + 4.0.4 + + + From 3209628c95610fd709f3bb0c069d6b26361b35e2 Mon Sep 17 00:00:00 2001 From: childish-sambino Date: Wed, 12 Aug 2020 11:26:56 -0500 Subject: [PATCH 4/4] Update Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 064737ef..82e5c343 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ install: cp target/sendgrid-java-$(VERSION)-shaded.jar sendgrid-java.jar test: - mvn test + mvn test spotbugs:spotbugs checkstyle:check -Dcheckstyle.config.location=google_checks.xml test-integ: test