From 0c6aaf46e90be2304d0296848117a5c87554cffd Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Tue, 26 Mar 2024 16:45:47 +0200 Subject: [PATCH] Bring back erroneously removed @BuildStep Fixes: #39699 --- .../quarkus/deployment/pkg/steps/UpxCompressionBuildStep.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/UpxCompressionBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/UpxCompressionBuildStep.java index 237e18cafa344..18807695b9529 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/UpxCompressionBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/UpxCompressionBuildStep.java @@ -16,6 +16,7 @@ import org.jboss.logging.Logger; import io.quarkus.deployment.annotations.BuildProducer; +import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.pkg.NativeConfig; import io.quarkus.deployment.pkg.builditem.ArtifactResultBuildItem; import io.quarkus.deployment.pkg.builditem.NativeImageBuildItem; @@ -34,6 +35,7 @@ public class UpxCompressionBuildStep { */ private static final String PATH = "PATH"; + @BuildStep(onlyIf = NativeBuild.class) public void compress(NativeConfig nativeConfig, NativeImageRunnerBuildItem nativeImageRunner, NativeImageBuildItem image, BuildProducer upxCompressedProducer,