From c24ce44405702986eec5b3e7e7b708052ef4886b Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Wed, 16 Aug 2023 16:26:36 +0300 Subject: [PATCH] Export package from different module name in 23.1-dev Module names changed in https://github.com/oracle/graal/pull/7171 --- .../io/quarkus/deployment/steps/NativeImageFeatureStep.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageFeatureStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageFeatureStep.java index 8f0a76f67bb73..1c55d06b304c4 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageFeatureStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageFeatureStep.java @@ -18,6 +18,7 @@ import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedPackageBuildItem; import io.quarkus.deployment.builditem.nativeimage.RuntimeReinitializedClassBuildItem; import io.quarkus.deployment.builditem.nativeimage.UnsafeAccessedFieldBuildItem; +import io.quarkus.deployment.pkg.steps.GraalVM; import io.quarkus.gizmo.CatchBlockCreator; import io.quarkus.gizmo.ClassCreator; import io.quarkus.gizmo.ClassOutput; @@ -48,7 +49,10 @@ public class NativeImageFeatureStep { @BuildStep void addExportsToNativeImage(BuildProducer features) { // required in order to access org.graalvm.nativeimage.impl.RuntimeClassInitializationSupport - features.produce(new JPMSExportBuildItem("org.graalvm.sdk", "org.graalvm.nativeimage.impl")); + features.produce(new JPMSExportBuildItem("org.graalvm.sdk", "org.graalvm.nativeimage.impl", null, + GraalVM.Version.VERSION_23_1_0)); + features.produce(new JPMSExportBuildItem("org.graalvm.nativeimage", "org.graalvm.nativeimage.impl", + GraalVM.Version.VERSION_23_0_0)); } @BuildStep