From 4b02a00509f4962ba499407a5788e6fac3b259f9 Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Tue, 16 May 2023 15:22:02 +0300 Subject: [PATCH] Only run KafkaStreamsProcessor when building native/native-sources (cherry picked from commit 4bd0553402aa0b6009d7b36e84fc70df385db572) --- .../kafka/streams/deployment/KafkaStreamsProcessor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/kafka-streams/deployment/src/main/java/io/quarkus/kafka/streams/deployment/KafkaStreamsProcessor.java b/extensions/kafka-streams/deployment/src/main/java/io/quarkus/kafka/streams/deployment/KafkaStreamsProcessor.java index 25f65ebca6ab0..4cc5b52d0b422 100644 --- a/extensions/kafka-streams/deployment/src/main/java/io/quarkus/kafka/streams/deployment/KafkaStreamsProcessor.java +++ b/extensions/kafka-streams/deployment/src/main/java/io/quarkus/kafka/streams/deployment/KafkaStreamsProcessor.java @@ -32,6 +32,7 @@ import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; import io.quarkus.deployment.builditem.nativeimage.RuntimeReinitializedClassBuildItem; import io.quarkus.deployment.pkg.builditem.NativeImageRunnerBuildItem; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import io.quarkus.kafka.streams.runtime.KafkaStreamsProducer; import io.quarkus.kafka.streams.runtime.KafkaStreamsRecorder; import io.quarkus.kafka.streams.runtime.KafkaStreamsRuntimeConfig; @@ -42,7 +43,7 @@ class KafkaStreamsProcessor { public static final String DEFAULT_PARTITION_GROUPER = "org.apache.kafka.streams.processor.DefaultPartitionGrouper"; - @BuildStep + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) void build(BuildProducer feature, BuildProducer reflectiveClasses, BuildProducer jniRuntimeAccessibleClasses,