diff options
author | Maros Marsalek <mmarsale@cisco.com> | 2016-07-14 09:54:50 +0200 |
---|---|---|
committer | Maros Marsalek <mmarsale@cisco.com> | 2016-07-14 09:56:36 +0200 |
commit | dddc1d221fae78677b5e269a4dad1f5ff409d0fe (patch) | |
tree | 53a154f9597c3d1d492f908b24f1f48252dac951 /common/impl-parent | |
parent | bb3c030e25d208519d288f3b035036eaa8e175e2 (diff) |
Add google's error prone static analysis to build
Can be also integrated with IDEs:
http://errorprone.info/docs/installation
Change-Id: I5f695995078139a077bd9d62c68792207c904e11
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'common/impl-parent')
-rw-r--r-- | common/impl-parent/pom.xml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/common/impl-parent/pom.xml b/common/impl-parent/pom.xml index c4ce7b168..f09996564 100644 --- a/common/impl-parent/pom.xml +++ b/common/impl-parent/pom.xml @@ -132,9 +132,27 @@ <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> |