aboutsummaryrefslogtreecommitdiff
path: root/pom.xml
diff options
context:
space:
mode:
authorJake Wharton <jw@squareup.com>2017-02-14 10:14:37 -0500
committerJake Wharton <jw@squareup.com>2017-02-14 22:41:48 -0500
commit89263f0462e47be5bac0298247be985ad0f4027b (patch)
tree6bd83e8cf8c98bcc25250cd75b3806bd7f968bda /pom.xml
parent1e70284811cf7e323e7ab6232c4a94e985c30689 (diff)
downloadjavapoet-89263f0462e47be5bac0298247be985ad0f4027b.tar.gz
Add error-prone compiler.
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml16
1 files changed, 15 insertions, 1 deletions
diff --git a/pom.xml b/pom.xml
index e8848b8..a4336ec 100644
--- a/pom.xml
+++ b/pom.xml
@@ -94,11 +94,25 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <version>3.0</version>
+ <version>3.6.1</version>
<configuration>
+ <compilerId>javac-with-errorprone</compilerId>
+ <forceJavacCompilerUse>true</forceJavacCompilerUse>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-compiler-javac-errorprone</artifactId>
+ <version>2.8.1</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.errorprone</groupId>
+ <artifactId>error_prone_core</artifactId>
+ <version>2.0.16</version>
+ </dependency>
+ </dependencies>
</plugin>
<plugin>