Skip to content

Commit

Permalink
Only run KafkaStreamsProcessor when building native/native-sources
Browse files Browse the repository at this point in the history
(cherry picked from commit 4bd0553)
  • Loading branch information
zakkak authored and gsmet committed May 23, 2023
1 parent 67958ea commit 4b02a00
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<FeatureBuildItem> feature,
BuildProducer<ReflectiveClassBuildItem> reflectiveClasses,
BuildProducer<JniRuntimeAccessBuildItem> jniRuntimeAccessibleClasses,
Expand Down

0 comments on commit 4b02a00

Please sign in to comment.