Skip to content

Commit

Permalink
Merge pull request #13194 from cescoffier/reactive-messaging-2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi authored Nov 10, 2020
2 parents 1f4d74d + d6fc10c commit b1f0279
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<smallrye-context-propagation.version>1.0.19</smallrye-context-propagation.version>
<smallrye-reactive-streams-operators.version>1.0.13</smallrye-reactive-streams-operators.version>
<smallrye-converter-api.version>1.2.2</smallrye-converter-api.version>
<smallrye-reactive-messaging.version>2.4.0</smallrye-reactive-messaging.version>
<smallrye-reactive-messaging.version>2.5.0</smallrye-reactive-messaging.version>
<jakarta.activation.version>1.2.1</jakarta.activation.version>
<jakarta.annotation-api.version>1.3.5</jakarta.annotation-api.version>
<jakarta.el-impl.version>3.0.3</jakarta.el-impl.version>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
package io.quarkus.smallrye.reactivemessaging.kafka.deployment;

import io.quarkus.deployment.Feature;
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import io.vertx.kafka.client.consumer.impl.KafkaReadStreamImpl;

public class SmallRyeReactiveMessagingKafkaProcessor {

@BuildStep
FeatureBuildItem feature() {
return new FeatureBuildItem(Feature.SMALLRYE_REACTIVE_MESSAGING_KAFKA);
}

@BuildStep
public void build(BuildProducer<ReflectiveClassBuildItem> reflectiveClass) {
// Required for the throttled commit strategy
reflectiveClass.produce(
ReflectiveClassBuildItem.builder(KafkaReadStreamImpl.class)
.fields(true)
.methods(true)
.constructors(true)
.finalFieldsWritable(true)
.build());
}

}

0 comments on commit b1f0279

Please sign in to comment.