From 3a3acdf2d3fe651609ac41f0047ff8ca5c8c6739 Mon Sep 17 00:00:00 2001 From: Clement Escoffier Date: Mon, 29 May 2023 10:02:04 +0200 Subject: [PATCH] Do not include the Kafka Dev UI beans during the native build --- .../kafka/client/deployment/KafkaProcessor.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/extensions/kafka-client/deployment/src/main/java/io/quarkus/kafka/client/deployment/KafkaProcessor.java b/extensions/kafka-client/deployment/src/main/java/io/quarkus/kafka/client/deployment/KafkaProcessor.java index 2c8f91193f6ad..d2ced26b18010 100644 --- a/extensions/kafka-client/deployment/src/main/java/io/quarkus/kafka/client/deployment/KafkaProcessor.java +++ b/extensions/kafka-client/deployment/src/main/java/io/quarkus/kafka/client/deployment/KafkaProcessor.java @@ -539,12 +539,19 @@ void registerServiceBinding(Capabilities capabilities, } } + @BuildStep + public AdditionalBeanBuildItem kafkaAdmin() { + return AdditionalBeanBuildItem.builder() + .addBeanClass(KafkaAdminClient.class) + .setUnremovable() + .build(); + } + // Kafka UI related stuff - @BuildStep + @BuildStep(onlyIf = IsDevelopment.class) public AdditionalBeanBuildItem kafkaClientBeans() { return AdditionalBeanBuildItem.builder() - .addBeanClass(KafkaAdminClient.class) .addBeanClass(KafkaTopicClient.class) .addBeanClass(KafkaUiUtils.class) .setUnremovable()