diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/ResourceBundleStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/ResourceBundleStep.java new file mode 100644 index 0000000000000..f2cfba72a2ce0 --- /dev/null +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/ResourceBundleStep.java @@ -0,0 +1,17 @@ +package io.quarkus.deployment.steps; + +import io.quarkus.deployment.annotations.BuildStep; +import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem; + +public class ResourceBundleStep { + + @BuildStep + public NativeImageResourceBundleBuildItem nativeImageResourceBundle() { + /* + * The following resource bundle sometimes needs to be included into the native image with JDK 11. + * This might no longer be required if GraalVM auto-includes it in a future release. + * See https://github.com/oracle/graal/issues/2005 for more details about it. + */ + return new NativeImageResourceBundleBuildItem("sun.security.util.Resources"); + } +}