Attempting to get ErrorProne working on JDK11

This commit is contained in:
jamesagnew 2018-12-08 18:22:17 -05:00
parent 9a97d21660
commit 3109a269b3
2 changed files with 15 additions and 3 deletions

14
pom.xml
View File

@ -1356,6 +1356,7 @@
<maxmem>2000m</maxmem>
</configuration>
<dependencies>
<!--
<dependency>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
@ -1381,6 +1382,7 @@
<artifactId>plexus-utils</artifactId>
<version>3.1.0</version>
</dependency>
-->
</dependencies>
</plugin>
<plugin>
@ -2279,7 +2281,17 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerId>javac-with-errorprone</compilerId>
<compilerArgs>
<arg>-XDcompilePolicy=simple</arg>
<arg>-Xplugin:ErrorProne</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>2.3.2</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>