summaryrefslogtreecommitdiffstats
path: root/common/api-parent/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'common/api-parent/pom.xml')
-rw-r--r--common/api-parent/pom.xml34
1 files changed, 26 insertions, 8 deletions
diff --git a/common/api-parent/pom.xml b/common/api-parent/pom.xml
index 81c818f8a..ec7f78dcb 100644
--- a/common/api-parent/pom.xml
+++ b/common/api-parent/pom.xml
@@ -125,14 +125,32 @@
</execution>
</executions>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.8</source>
- <target>1.8</target>
- </configuration>
- </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <!-- Use google's error-prone static analysis-->
+ <compilerId>javac-with-errorprone</compilerId>
+ <forceJavacCompilerUse>true</forceJavacCompilerUse>
+ <showWarnings>true</showWarnings>
+ <source>1.8</source>
+ <target>1.8</target>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-compiler-javac-errorprone</artifactId>
+ <version>2.5</version>
+ </dependency>
+ <!-- override plexus-compiler-javac-errorprone's dependency on
+ Error Prone with the latest version -->
+ <dependency>
+ <groupId>com.google.errorprone</groupId>
+ <artifactId>error_prone_core</artifactId>
+ <version>2.0.9</version>
+ </dependency>
+ </dependencies>
+ </plugin>
</plugins>
</build>