From 571c2b6ea232e295158154c9fbd6ef18f9e97942 Mon Sep 17 00:00:00 2001 From: Liam Miller-Cushon Date: Fri, 16 Feb 2024 16:38:04 -0800 Subject: [PATCH] Update maven native-image configuration for google-java-format PiperOrigin-RevId: 607835047 --- core/pom.xml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/core/pom.xml b/core/pom.xml index 60add52d1..064f9dee8 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -288,7 +288,7 @@ build-native - build + compile-no-fork package @@ -306,9 +306,19 @@ ${project.build.directory}/${project.artifactId}-${project.version}-all-deps.jar + -H:+UnlockExperimentalVMOptions -H:IncludeResourceBundles=com.sun.tools.javac.resources.compiler + -H:IncludeResourceBundles=com.sun.tools.javac.resources.javac --no-fallback --initialize-at-build-time=com.sun.tools.javac.file.Locations + -H:+ReportExceptionStackTraces + -H:-UseContainerSupport + -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.parser=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