Upgrade Notes for Dropwizard 0.7.x
Update Java source and target versions in
maven-compiler-plugin
to 1.7 (most applications should be already on 1.7);Replace Maven dependencies from
com.yammer.dropwizard
toio.dropwizard
;Replace package statements from
com.yammer.dropwizard
toio.dropwizard
throughout the codebase;If you use
dropwizard-db
, update configuration class to useDataSourceFactory
;If you use
dropwizard-hibernate
, update Hibernate bundle by overridinggetDataSourceFactory
;If you use
dropwizard-migrations
, update Migrations bundle by overridinggetDataSourceFactory
;If you serve static files, add
dropwizard-assets
to dependencies;If you use templating, add
dropwizard-views-freemarker
ordropwizard-views-mustache
accordingly;Update the application to override
getName()
instead of providing the bundle with the name;Change how resources are added from
environment.addResource(resource)
toenvironment.jersey().register(resource)
;Once everything is compiling, rename
*Service
class to*Application
;Change test classes extending
ResourceTest
to useResourceTestRule
;Convert
app.yml
to the new server layout (seeServerFactory
andConnectorFactory
);