Is there an automated way to find out which version of Jersey that Dropwizard depends on?
I'd like to add jersey-apache-connector
as a dependency to my project. To make sure it's compatible with the Jersey version included through Dropwizard, I'd like to do something like
compile "org.glassfish.jersey.connectors:jersey-apache-connector:$dropwizardJacksonVersion"
^^^^^^^^^^^^^^^^^^^^^^^^^^
dropwizardJacksonVersion
obviously doesn't exist. Is there a simple way solve this programatically?
(I realize I could find out a good version number manually, but it would be nice to just depend on a specific version of Dropwizard, and just follow suit when it comes to Jersey versions.)