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

View File

@ -9,9 +9,9 @@ package ca.uhn.fhir.util;
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

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>