Enable Google's Error Prone

Enabled by default to catch common Java mistakes as compile-time errors.

https://github.com/google/error-prone
This commit is contained in:
Thiago Kronig 2015-05-05 14:23:40 -03:00 committed by Clebert Suconic
parent 27cbc92a92
commit 592f28f03f
1 changed files with 12 additions and 0 deletions

12
pom.xml
View File

@ -700,6 +700,18 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version> <version>3.1</version>
<!-- Enable Google's Error-Prone https://github.com/google/error-prone -->
<configuration>
<compilerId>javac-with-errorprone</compilerId>
<forceJavacCompilerUse>true</forceJavacCompilerUse>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-javac-errorprone</artifactId>
<version>2.5</version>
</dependency>
</dependencies>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>