FasterXML / jackson-dataformats-binary

Uber-project for standard Jackson binary format backends: avro, cbor, ion, protobuf, smile
Apache License 2.0
314 stars 136 forks source link

jackson-dataformat-avro uses an apache avro version that depends on jackson 1.9.13 #187

Open steinarb opened 5 years ago

steinarb commented 5 years ago

The jackson-format-avro pom references avro 1.8.2 which has jackson 1.9.13 as a transitive dependency.

Avro moved to using jackson 2.x on version 1.9.0 and is using jackson 2.9.9 from avro 1.10.

The jackson-dataformat-avro code is paradoxically using classes from the org.codehaus.jackson.* packages, which also should be updated.

steinarb commented 5 years ago

I discovered this issue while working on https://github.com/FasterXML/jackson-databind/issues/2434

cowtowncoder commented 5 years ago

This is a known problem, and has been considered sub-optimal but harmless. There is an issue for Avro module (where this issue would belong) about possibility of upgrading Apache Avro lib dependency:

https://github.com/FasterXML/jackson-dataformats-binary/issues/167

so I think this issue might be a dup.

Avro module itself unfortunately has to depend on Jackson 1.x for the sole reason that not only do earlier AA versions use it, they (worse) expose types via API -- and so there is no good way around dependency when dealing with default values.

Dependency could be fixed if only we could upgrade to 1.9.x. But as discussed in lineked-to issue, there are.... what seem like severe incompatibilities between 1.8.x and 1.9.x. So for the time being we are in bit of a limbo unfortunately.