From ad1ab52a9ed957f97400b0a2837fe7da6a0d7546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20D=C3=A9camps?= Date: Sat, 4 Nov 2017 00:11:10 +0100 Subject: [PATCH] Add google error-prone in compile step. (#223) * Add google error-prone in compile step. Note that FallThrough violations have been reduced to warnings. See issue #222 * Enable error-prone in the java 8 profile only, because the plugin was compiled for java 8, and cannot be used in openjdk7. --- pom.xml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2ac7840ff..10f62874f 100644 --- a/pom.xml +++ b/pom.xml @@ -235,13 +235,41 @@ - + java8 [1.8,) + + org.apache.maven.plugins + maven-compiler-plugin + 3.3 + + javac-with-errorprone + true + + -Xep:FallThrough:WARN + + 7 + 7 + + + + org.codehaus.plexus + plexus-compiler-javac-errorprone + 2.8 + + + + com.google.errorprone + error_prone_core + 2.1.1 + + + org.apache.maven.plugins maven-javadoc-plugin