Skip to content

Commit

Permalink
Confluent kafka avro serializer register NullContextNameStrategy for …
Browse files Browse the repository at this point in the history
…reflection

Fixes quarkusio#21412

(cherry picked from commit ac31451)
  • Loading branch information
ozangunalp authored and gsmet committed Nov 24, 2021
1 parent 73ea6dc commit 83af49a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,10 @@ private void handleAvro(BuildProducer<ReflectiveClassBuildItem> reflectiveClass,
"io.confluent.kafka.serializers.KafkaAvroDeserializer",
"io.confluent.kafka.serializers.KafkaAvroSerializer"));

reflectiveClass
.produce(new ReflectiveClassBuildItem(true, false, false,
"io.confluent.kafka.serializers.context.NullContextNameStrategy"));

reflectiveClass
.produce(new ReflectiveClassBuildItem(true, true, false,
"io.confluent.kafka.serializers.subject.TopicNameStrategy",
Expand Down
6 changes: 5 additions & 1 deletion integration-tests/kafka-avro-apicurio2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,16 @@
<dependency>
<groupId>io.confluent</groupId>
<artifactId>kafka-avro-serializer</artifactId>
<version>6.1.1</version>
<version>7.0.0</version>
<exclusions>
<exclusion>
<groupId>jakarta.ws.rs</groupId>
<artifactId>jakarta.ws.rs-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.checkerframework</groupId>
<artifactId>checker-qual</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Apicurio -->
Expand Down

0 comments on commit 83af49a

Please sign in to comment.