- Posted by Intent Media
- 0 Comments
At Intent Media we started using Dropwizard last year when creating an external API. Dropwizard is a great lightweight Java framework (they really exist!) for building RESTful web services, tying together Jetty, Jersey, Jackson, JDBI and a powerful metrics library.
Everything was working great with the API in production until a few months ago, when we needed to run our application on both http and https to process SSL requests. Unfortunately, with Dropwizard 0.6 this wasn’t possible so we decided to upgrade to the next version, 0.7. Dropwizard 0.7 isn’t a drop-in replacement for 0.6 and we couldn’t find a decent resource online, so we decided to write this guide based on our upgrade experience.
The changes we had to make to upgrade to 0.7 were the result of two changes to Dropwizard. First, the resources moved to new packages. Second, core Dropwizard objects were renamed. Third, the way that the application is configured through code has changed.
Class packages have all changed
Our previous ivy.xml file was quite sparse, but in 0.7 there are more distinct dependences. More importantly, the package names changed from com.yammer.dropwizard and com.codahale.metrics to io.dropwizard and io.dropwizard.metrics
0.6 <dependency org="com.yammer.dropwizard" name="dropwizard-client" rev="0.6.2"/> <dependency… Continue reading