Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -729,6 +729,11 @@ public NativeImageInvokerInfo build() {
nativeImageArgs.add(excludeConfig.getResourceName());
}

// Work around https://github.com/quarkusio/quarkus/issues/21372
if (graalVMVersion.is(GraalVM.Version.VERSION_21_3_0) && graalVMVersion.isJava17()) {
nativeImageArgs.add("-J--add-exports=java.management/sun.management=ALL-UNNAMED");
}

nativeImageArgs.add(nativeImageName);

//Make sure to have the -jar as last one, as it otherwise breaks "--exclude-config"

0 comments on commit 3bc4272

Please sign in to comment.