diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2021-09-12 18:44:08 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2021-09-29 17:13:03 +0200 |
commit | 72b89b4b639d0951544bc7b8cda60e73fe305772 (patch) | |
tree | 54acfda8308f2f7af91f9443dee6d86d4c0ba24e /org.eclipse.jgit.benchmarks | |
parent | 9ba3a521aa96502ba7411408d3ecf5958a90f34d (diff) | |
download | jgit-72b89b4b639d0951544bc7b8cda60e73fe305772.tar.gz jgit-72b89b4b639d0951544bc7b8cda60e73fe305772.zip |
Update errorprone to 2.9.0 and enable using it on java 16
Enabling <fork>true</fork> 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
Diffstat (limited to 'org.eclipse.jgit.benchmarks')
-rw-r--r-- | org.eclipse.jgit.benchmarks/pom.xml | 13 |
1 files changed, 12 insertions, 1 deletions
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 @@ <encoding>UTF-8</encoding> <source>${java.version}</source> <target>${java.version}</target> + <fork>true</fork> <compilerArgs> <arg>-XDcompilePolicy=simple</arg> <arg>-Xplugin:ErrorProne</arg> + <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg> + <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg> + <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg> + <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED</arg> + <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</arg> + <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg> + <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg> + <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg> + <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg> + <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg> </compilerArgs> <annotationProcessorPaths> <path> <groupId>com.google.errorprone</groupId> <artifactId>error_prone_core</artifactId> - <version>2.4.0</version> + <version>2.9.0</version> </path> </annotationProcessorPaths> <generatedSourcesDirectory>.apt_generated</generatedSourcesDirectory> |