From ee81afc93990493701a6f7a2801eff058ac57891 Mon Sep 17 00:00:00 2001 From: Liam Miller-Cushon Date: Mon, 7 Mar 2022 08:08:34 -0800 Subject: [PATCH] Use `Add-Exports` and `Add-Opens` manifest entries for google-java-format to avoid passing the flags on the command line when using `java -jar`. PiperOrigin-RevId: 432947555 --- pom.xml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index c7f685698..f6c7b590d 100644 --- a/pom.xml +++ b/pom.xml @@ -198,13 +198,13 @@ -XDcompilePolicy=simple -Xplugin:ErrorProne + --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED + --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED - --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED - --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED @@ -233,6 +233,19 @@ com.google.googlejavaformat.java.Main + + jdk.compiler/com.sun.tools.javac.api jdk.compiler/com.sun.tools.javac.file jdk.compiler/com.sun.tools.javac.main jdk.compiler/com.sun.tools.javac.model jdk.compiler/com.sun.tools.javac.parser jdk.compiler/com.sun.tools.javac.processing jdk.compiler/com.sun.tools.javac.tree jdk.compiler/com.sun.tools.javac.util + jdk.compiler/com.sun.tools.javac.code jdk.compiler/com.sun.tools.javac.comp +