From 72b89b4b639d0951544bc7b8cda60e73fe305772 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Sun, 12 Sep 2021 18:44:08 +0200 Subject: Update errorprone to 2.9.0 and enable using it on java 16 Enabling true and setting the --add-exports= flags is required on JDK 16 due to JEP 396: Strongly Encapsulate JDK Internals by Default. see https://errorprone.info/docs/installation and https://openjdk.java.net/jeps/396 Change-Id: I03c257ffb48f429dd7d49a403d65c700abe133ca --- org.eclipse.jgit.benchmarks/pom.xml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'org.eclipse.jgit.benchmarks') diff --git a/org.eclipse.jgit.benchmarks/pom.xml b/org.eclipse.jgit.benchmarks/pom.xml index b2cd741ad3..d1d3fa5715 100644 --- a/org.eclipse.jgit.benchmarks/pom.xml +++ b/org.eclipse.jgit.benchmarks/pom.xml @@ -79,15 +79,26 @@ UTF-8 ${java.version} ${java.version} + true -XDcompilePolicy=simple -Xplugin:ErrorProne + -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED + -J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED + -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED com.google.errorprone error_prone_core - 2.4.0 + 2.9.0 .apt_generated -- cgit v1.2.3