From 8446bc3c194c3986cc40395750216482385f2750 Mon Sep 17 00:00:00 2001 From: Tom White Date: Mon, 5 Feb 2018 15:35:56 +0000 Subject: [PATCH] Use fmt-maven-plugin to check source complies with the Google Java Style Guide. (If it doesn't the author can manually type 'mvn fmt:format' to reformat, or manually reformat in the IDE.) --- .travis.yml | 2 +- pom.xml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8dbe2b6..49e0a6c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ before_install: - sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts - cat /etc/hosts # optionally check the content *after* -script: mvn clean test jacoco:report +script: mvn clean fmt:check test jacoco:report after_success: - python scripts/deploy/addServerToM2Settings.py diff --git a/pom.xml b/pom.xml index b775cf3..f8d57b8 100644 --- a/pom.xml +++ b/pom.xml @@ -121,6 +121,18 @@ + + com.coveo + fmt-maven-plugin + 2.2.0 + + + + check + + + + org.apache.maven.plugins maven-release-plugin