errorprone errors workarounds.
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<!-- Shared versions -->
<retro.version>2.5.1</retro.version>
- <errorprone.version>2.8.1</errorprone.version>
+ <errorprone.version>2.9.0</errorprone.version>
<javac.version>9+181-r4173-1</javac.version>
<mongo-java-driver.version>4.3.1</mongo-java-driver.version>
<elasticsearch.version>7.1.0</elasticsearch.version>
<configuration>
<fork>true</fork>
<compilerArgs combine.children="append">
+ <!-- required by parboiled -->
<arg>-J--add-opens=java.base/java.lang=ALL-UNNAMED</arg>
+
+ <!-- required by errorprone -->
+ <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>
</configuration>
</plugin>
