From 73d6a85e5e28cfc4322b5ae43014be4f4ecb3370 Mon Sep 17 00:00:00 2001 From: Graham Triggs Date: Thu, 25 Oct 2018 17:51:52 +0100 Subject: [PATCH] [VIVO-1605] Update to latest Error Prone plugin and configuration to support JDK 11 (#88) * Update to latest Error Prone plugin and configuration to support JDK 11 * Update Error Prone from SNAPSHOT * Add Javac version missing from Error Prone docs Partial resolution of: https://jira.duraspace.org/browse/VIVO-1605 --- installer/pom.xml | 2 +- pom.xml | 53 ++++++++++++++++++++++++++++++++--------------- 2 files changed, 37 insertions(+), 18 deletions(-) diff --git a/installer/pom.xml b/installer/pom.xml index 39671fd6d..f60bc18e1 100644 --- a/installer/pom.xml +++ b/installer/pom.xml @@ -64,7 +64,7 @@ maven-compiler-plugin - 3.5.1 + 3.8.0 maven-dependency-plugin diff --git a/pom.xml b/pom.xml index fe71d8acb..1f66dd1d5 100644 --- a/pom.xml +++ b/pom.xml @@ -194,6 +194,30 @@ + + + jdk8 + + 1.8 + + + 9+181-r4173-1 + + + + + org.apache.maven.plugins + maven-compiler-plugin + + true + + -J-Xbootclasspath/p:${settings.localRepository}/com/google/errorprone/javac/${javac.version}/javac-${javac.version}.jar + + + + + + @@ -205,23 +229,18 @@ 1.8 1.8 UTF-8 - javac-with-errorprone - true + + -XDcompilePolicy=simple + -Xplugin:ErrorProne + + + + com.google.errorprone + error_prone_core + 2.3.2 + + - - - org.codehaus.plexus - plexus-compiler-javac-errorprone - 2.8 - - - - com.google.errorprone - error_prone_core - 2.1.1 - - org.codehaus.mojo @@ -268,7 +287,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.5.1 + 3.8.0 org.apache.maven.plugins