Upgrade Notes for Dropwizard 0.7.x
Update Java source and target versions in
maven-compiler-pluginto 1.7 (most applications should be already on 1.7);Replace Maven dependencies from
com.yammer.dropwizardtoio.dropwizard;Replace package statements from
com.yammer.dropwizardtoio.dropwizardthroughout 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-assetsto dependencies;If you use templating, add
dropwizard-views-freemarkerordropwizard-views-mustacheaccordingly;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
*Serviceclass to*Application;Change test classes extending
ResourceTestto useResourceTestRule;Convert
app.ymlto the new server layout (seeServerFactoryandConnectorFactory);