Skip to content

Commit

Permalink
Work around for quarkusio#21372
Browse files Browse the repository at this point in the history
  • Loading branch information
zakkak committed Nov 17, 2021
1 parent 19c20be commit 20140d2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,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"
Expand Down

0 comments on commit 20140d2

Please sign in to comment.