confluentinc / schema-registry

Confluent Schema Registry for Kafka
https://docs.confluent.io/current/schema-registry/docs/index.html
Other
2.16k stars 1.11k forks source link

Split packages found between kafka.schema.serializer and kafka.avro.serializer #2735

Open anttiahonen opened 10 months ago

anttiahonen commented 10 months ago

When trying to use JPMS modules inside a project utilizing Kafka with Avro, the compilation fails because of split packages between the two dependencies needed to run the project kafka.schema.serializer and kafka.avro.serializer

[ERROR] module spring.beans reads package io.confluent.kafka.serializers from both kafka.schema.serializer and kafka.avro.serializer
[ERROR] module spring.beans reads package io.confluent.kafka.formatter from both kafka.schema.serializer and kafka.avro.serializer
credmond commented 2 months ago

Confluent, you seem to have this problem peppered throughout a good few of your libraries, and you've had years to fix it. It's a simple fix.

You can't have JARs with duplicate packages play nicely with projects using JPMS -- which is practically every new project in the last 7 years or so.