Override/Upgrade jackson dependency in latest Dropwizard

108 views
Skip to first unread message

Nadav Lavy

unread,
Jun 16, 2021, 3:17:24 AM6/16/21
to dropwizard-user

Hello

I'm using Dropwizard 2.0.22 (latest at the time of this writing).
It depends on fairly old Jackson - 2.10.5 (latest is 2.12.3).
This creates an issue in my project where we need to use features from latest Jackson (and in general be able to upgrade to its latest).

Can I safely override the Jackson version Dropwizard depends on?
Does it use it internally for things that might break if I do?

Thanks!

Jochen Schalanda

unread,
Jun 16, 2021, 1:58:57 PM6/16/21
to dropwizard-user
Hi Nadav,

Can I safely override the Jackson version Dropwizard depends on?
Does it use it internally for things that might break if I do?

Yes, it should just work and yes, Dropwizard is using Jackson internally, for example for parsing the configuration files and to serialize/deserialize JSON in JAX-RS resources.

Here's the PR which updated Jackson (first 2.11.x, then 2.12.x) for the Dropwizard 2.1.x branch:

As you can see in the PR there weren't many changes required. ;-)

Cheers,
Jochen

Nadav Lavy

unread,
Jun 21, 2021, 8:26:29 AM6/21/21
to dropwiz...@googlegroups.com

Thanks for the detailed info Jochen!

I tried upgrading and got multiple errors.

At that point I abandoned the effort and decided its best wait for dw 2.1.x to be out of beta, (and guicy support will be added as well).

--
You received this message because you are subscribed to the Google Groups "dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dropwizard-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dropwizard-user/A41B2AD8-656F-469A-A6B3-7C847B19DAB5%40schalanda.name.

Reply all
Reply to author
Forward
0 new messages