diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java index 8dcf24293d36f..bbc4630166cc7 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java @@ -90,7 +90,8 @@ ArtifactResultBuildItem nativeSourcesResult(NativeConfig nativeConfig, List nativeImageProperties, List excludeConfigs, NativeImageAllowIncompleteClasspathAggregateBuildItem incompleteClassPathAllowed, - List jpmsExportBuildItems) { + List jpmsExportBuildItems, + List nativeImageSecurityProviders) { Path outputDir; try { @@ -109,13 +110,15 @@ ArtifactResultBuildItem nativeSourcesResult(NativeConfig nativeConfig, .setNativeConfig(nativeConfig) .setOutputTargetBuildItem(outputTargetBuildItem) .setNativeImageProperties(nativeImageProperties) - .setBrokenClasspath(incompleteClassPathAllowed.isAllow()) .setExcludeConfigs(excludeConfigs) .setJPMSExportBuildItems(jpmsExportBuildItems) + .setBrokenClasspath(incompleteClassPathAllowed.isAllow()) + .setNativeImageSecurityProviders(nativeImageSecurityProviders) .setOutputDir(outputDir) .setRunnerJarName(runnerJar.getFileName().toString()) // the path to native-image is not known now, it is only known at the time the native-sources will be consumed .setNativeImageName(nativeImageName) + .setGraalVMVersion(GraalVM.Version.CURRENT) .build(); List command = nativeImageArgs.getArgs(); try (FileOutputStream commandFOS = new FileOutputStream(outputDir.resolve("native-image.args").toFile())) {