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 915ab5d7158dc..112d70f346739 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 @@ -44,17 +44,18 @@ class KafkaStreamsProcessor { public static final String DEFAULT_PARTITION_GROUPER = "org.apache.kafka.streams.processor.DefaultPartitionGrouper"; + @BuildStep + FeatureBuildItem feature() { + return new FeatureBuildItem(Feature.KAFKA_STREAMS); + } + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) - void build(BuildProducer feature, - BuildProducer reflectiveClasses, + void build(BuildProducer reflectiveClasses, BuildProducer jniRuntimeAccessibleClasses, BuildProducer reinitialized, BuildProducer nativeLibs, LaunchModeBuildItem launchMode, NativeImageRunnerBuildItem nativeImageRunner) throws IOException { - - feature.produce(new FeatureBuildItem(Feature.KAFKA_STREAMS)); - registerClassesThatAreLoadedThroughReflection(reflectiveClasses, launchMode); registerClassesThatAreAccessedViaJni(jniRuntimeAccessibleClasses); addSupportForRocksDbLib(nativeLibs, nativeImageRunner);