Skip to content

Commit

Permalink
Update maven native-image configuration for google-java-format
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 607835047
  • Loading branch information
cushon authored and google-java-format Team committed Feb 17, 2024
1 parent 910586c commit 571c2b6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@
<execution>
<id>build-native</id>
<goals>
<goal>build</goal>
<goal>compile-no-fork</goal>
</goals>
<phase>package</phase>
</execution>
Expand All @@ -306,9 +306,19 @@
<param>${project.build.directory}/${project.artifactId}-${project.version}-all-deps.jar</param>
</classpath>
<buildArgs>
<buildArg>-H:+UnlockExperimentalVMOptions</buildArg>
<buildArg>-H:IncludeResourceBundles=com.sun.tools.javac.resources.compiler</buildArg>
<buildArg>-H:IncludeResourceBundles=com.sun.tools.javac.resources.javac</buildArg>
<buildArg>--no-fallback</buildArg>
<buildArg>--initialize-at-build-time=com.sun.tools.javac.file.Locations</buildArg>
<buildArg>-H:+ReportExceptionStackTraces</buildArg>
<buildArg>-H:-UseContainerSupport</buildArg>
<buildArg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</buildArg>
<buildArg>-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</buildArg>
<buildArg>-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</buildArg>
<buildArg>-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</buildArg>
<buildArg>-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</buildArg>
<buildArg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</buildArg>
</buildArgs>
</configuration>
</plugin>
Expand Down

0 comments on commit 571c2b6

Please sign in to comment.