FasterXML / jackson-dataformats-binary

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

`jackson-databind` should not be full dependency for (cbor, protobuf, smile) modules #198

Closed cowtowncoder closed 4 years ago

cowtowncoder commented 4 years ago

Up until 2.9, low-level codecs (CBOR, Smile) had no direct dependency to jackson-databind; and protobuf only had it for optional Schema generation. Other codecs in this package (Avro, Ion) already had full dependency.

But 2.10 added XxxMapper subtypes, to allow for builder-based construction. Although there may still be cases where users might want to avoid dependency to databind, it seems better to by default add dependency so OSGi, Java 9+ module system and so on do not have trouble with what seem like hard dependencies. Users can still exclude this dependency, if this makes sense in their specific case.

Note: not added in 2.10 since we are fairly far along patch releases; goes in 2.11.