Fork me on GitHub

Release Notes

v0.8.0: Mar 5 2015

  • Migrated dropwizard-spdy from NPN to ALPN
  • Dropped support for deprecated SPDY/2 in dropwizard-spdy
  • Upgrade to argparse4j 0.4.4
  • Upgrade to commons-lang3 3.3.2
  • Upgrade to Guava 18.0
  • Upgrade to H2 1.4.185
  • Upgrade to Hibernate 4.3.5.Final
  • Upgrade to Hibernate Validator 5.1.3.Final
  • Upgrade to Jackson 2.5.1
  • Upgrade to JDBI 2.59
  • Upgrade to Jersey 2.16
  • Upgrade to Jetty 9.2.9.v20150224
  • Upgrade to Joda-Time 2.7
  • Upgrade to Liquibase 3.3.2
  • Upgrade to Mustache 0.8.16
  • Upgrade to SLF4J 1.7.10
  • Upgrade to tomcat-jdbc 8.0.18
  • Upgrade to JSR305 annotations 3.0.0
  • Upgrade to Junit 4.12
  • Upgrade to AssertJ 1.7.1
  • Upgrade to Mockito 1.10.17
  • Support for range headers
  • Ability to use Apache client configuration for Jersey client
  • Warning when maximum pool size and unbounded queues are combined
  • Fixed connection leak in CloseableLiquibase
  • Support ScheduledExecutorService with daemon thread
  • Improved DropwizardAppRule
  • Better connection pool metrics
  • Removed final modifier from Application#run
  • Fixed gzip encoding to support Jersey 2.x
  • Configuration to toggle regex [in/ex]clusion for Metrics
  • Configuration to disable default exception mappers
  • Configuration support for disabling chunked encoding
  • Documentation fixes and upgrades

v0.7.1: Jun 18 2014

  • Added instrumentation to Task, using metrics annotations.
  • Added ability to blacklist SSL cipher suites.
  • Added @PATCH annotation for Jersey resource methods to indicate use of the HTTP PATCH method.
  • Added support for configurble request retry behavior for HttpClientBuilder and JerseyClientBuilder.
  • Added facility to get the admin HTTP port in DropwizardAppTestRule.
  • Added ScanningHibernateBundle, which scans packages for entities, instead of requiring you to add them individually.
  • Added facility to invalidate credentials from the CachingAuthenticator that match a specified Predicate.
  • Added a CI build profile for JDK 8 to ensure that Dropwizard builds against the latest version of the JDK.
  • Added --catalog and --schema options to Liquibase.
  • Added stackTracePrefix configuration option to SyslogAppenderFactory to configure the pattern prepended to each line in the stack-trace sent to syslog. Defaults to the TAB character, “t”. Note: this is different from the bang prepended to text logs (such as “console”, and “file”), as syslog has different conventions for multi-line messages.
  • Added ability to validate Optional values using validation annotations. Such values require the @UnwrapValidatedValue annotation, in addition to the validations you wish to use.
  • Added facility to configure the User-Agent for HttpClient. Configurable via the userAgent configuration option.
  • Added configurable AllowedMethodsFilter. Configure allowed HTTP methods for both the application and admin connnectors with allowedMethods.
  • Added support for specifying a CredentialProvider for HTTP clients.
  • Fixed silently overriding Servlets or ServletFilters; registering a duplicate will now emit a warning.
  • Fixed SyslogAppenderFactory failing when the application name contains a PCRE reserved character (e.g. / or $).
  • Fixed regression causing JMX reporting of metrics to not be enabled by default.
  • Fixed transitive dependencies on log4j and extraneous sl4j backends bleeding in to projects. Dropwizard will now enforce that only Logback and slf4j-logback are used everywhere.
  • Fixed clients disconnecting before the request has been fully received causing a “500 Internal Server Error” to be generated for the request log. Such situations will now correctly generate a “400 Bad Request”, as the request is malformed. Clients will never see these responses, but they matter for logging and metrics that were previously considering this situation as a server error.
  • Fixed DiscoverableSubtypeResolver using the system ClassLoader, instead of the local one.
  • Fixed regression causing Liquibase --dump to fail to dump the database.
  • Fixed the CSV metrics reporter failing when the output directory doesn’t exist. It will now attempt to create the directory on startup.
  • Fixed global frequency for metrics reporters being permenantly overridden by the default frequency for individual reporters.
  • Fixed tests failing on Windows due to platform-specific line separators.
  • Changed DropwizardAppTestRule so that it no longer requires a configuration path to operate. When no path is specified, it will now use the applications’ default configuration.
  • Changed Bootstrap so that getMetricsFactory() may now be overridden to provide a custom instance to the framework to use.
  • Upgraded to Guava 17.0 Note: this addresses a bug with BloomFilters that is incompatible with pre-17.0 BloomFilters.
  • Upgraded to Jackson 2.3.3
  • Upgraded to Apache HttpClient 4.3.4
  • Upgraded to Metrics 3.0.2
  • Upgraded to Logback 1.1.2
  • Upgraded to h2 1.4.178
  • Upgraded to jDBI 2.55
  • Upgraded to Hibernate 4.3.5 Final
  • Upgraded to Hibernate Validator 5.1.1 Final
  • Upgraded to Mustache 0.8.15

v0.7.0: Apr 04 2014

  • Upgraded to Java 7.
  • Moved to the io.dropwizard group ID and namespace.
  • Extracted out a number of reusable libraries: dropwizard-configuration, dropwizard-jackson, dropwizard-jersey, dropwizard-jetty, dropwizard-lifecycle, dropwizard-logging, dropwizard-servlets, dropwizard-util, dropwizard-validation.
  • Extracted out various elements of Environment to separate classes: JerseyEnvironment, LifecycleEnvironment, etc.
  • Extracted out dropwizard-views-freemarker and dropwizard-views-mustache. dropwizard-views just provides infrastructure now.
  • Renamed Service to Application.
  • Added dropwizard-forms, which provides support for multipart MIME entities.
  • Added dropwizard-spdy.
  • Added AppenderFactory, allowing for arbitrary logging appenders for application and request logs.
  • Added ConnectorFactory, allowing for arbitrary Jetty connectors.
  • Added ServerFactory, with multi- and single-connector implementations.
  • Added ReporterFactory, for metrics reporters, with Graphite and Ganglia implementations.
  • Added ConfigurationSourceProvider to allow loading configuration files from sources other than the filesystem.
  • Added setuid support. Configure the user/group to run as and soft/hard open file limits in the ServerFactory. To bind to privileged ports (e.g. 80), enable startAsRoot and set user and group, then start your application as the root user.
  • Added builders for managed executors.
  • Added a default check command, which loads and validates the service configuration.
  • Added support for the Jersey HTTP client to dropwizard-client.
  • Added Jackson Afterburner support.
  • Added support for deflate-encoded requests and responses.
  • Added support for HTTP Sessions. Add the annotated parameter to your resource method: @Session HttpSession session to have the session context injected.
  • Added support for a “flash” message to be propagated across requests. Add the annotated parameter to your resource method: @Session Flash message to have any existing flash message injected.
  • Added support for deserializing Java enums with fuzzy matching rules (i.e., whitespace stripping, -/_ equivalence, case insensitivity, etc.).
  • Added HibernateBundle#configure(Configuration) for customization of Hibernate configuration.
  • Added support for Joda Time DateTime arguments and results when using JDBI.
  • Added configuration option to include Exception stack-traces when logging to syslog. Stack traces are now excluded by default.
  • Added the application name and PID (if detectable) to the beginning of syslog messages, as is the convention.
  • Added --migrations command-line option to migrate command to supply the migrations file explicitly.
  • Validation errors are now returned as application/json responses.
  • Simplified AsyncRequestLog; now standardized on Jetty 9 NCSA format.
  • Renamed DatabaseConfiguration to DataSourceFactory, and ConfigurationStrategy to DatabaseConfiguration.
  • Changed logging to be asynchronous. Messages are now buffered and batched in-memory before being delivered to the configured appender(s).
  • Changed handling of runtime configuration errors. Will no longer display an Exception stack-trace and will present a more useful description of the problem, including suggestions when appropriate.
  • Changed error handling to depend more heavily on Jersey exception mapping.
  • Changed dropwizard-db to use tomcat-jdbc instead of tomcat-dbcp.
  • Changed default formatting when logging nested Exceptions to display the root-cause first.
  • Replaced ResourceTest with ResourceTestRule, a JUnit TestRule.
  • Dropped Scala support.
  • Dropped ManagedSessionFactory.
  • Dropped ObjectMapperFactory; use ObjectMapper instead.
  • Dropped Validator; use javax.validation.Validator instead.
  • Fixed a shutdown bug in dropwizard-migrations.
  • Fixed formatting of “Caused by” lines not being prefixed when logging nested Exceptions.
  • Fixed not all available Jersey endpoints were being logged at startup.
  • Upgraded to argparse4j 0.4.3.
  • Upgraded to Guava 16.0.1.
  • Upgraded to Hibernate Validator 5.0.2.
  • Upgraded to Jackson 2.3.1.
  • Upgraded to JDBI 2.53.
  • Upgraded to Jetty 9.0.7.
  • Upgraded to Liquibase 3.1.1.
  • Upgraded to Logback 1.1.1.
  • Upgraded to Metrics 3.0.1.
  • Upgraded to Mustache 0.8.14.
  • Upgraded to SLF4J 1.7.6.
  • Upgraded to Jersey 1.18.
  • Upgraded to Apache HttpClient 4.3.2.
  • Upgraded to tomcat-jdbc 7.0.50.
  • Upgraded to Hibernate 4.3.1.Final.

v0.6.2: Mar 18 2013

  • Added support for non-UTF8 views.
  • Fixed an NPE for services in the root package.
  • Fixed exception handling in TaskServlet.
  • Upgraded to Slf4j 1.7.4.
  • Upgraded to Jetty 8.1.10.
  • Upgraded to Jersey 1.17.1.
  • Upgraded to Jackson 2.1.4.
  • Upgraded to Logback 1.0.10.
  • Upgraded to Hibernate 4.1.9.
  • Upgraded to Hibernate Validator 4.3.1.
  • Upgraded to tomcat-dbcp 7.0.37.
  • Upgraded to Mustache.java 0.8.10.
  • Upgraded to Apache HttpClient 4.2.3.
  • Upgraded to Jackson 2.1.3.
  • Upgraded to argparse4j 0.4.0.
  • Upgraded to Guava 14.0.1.
  • Upgraded to Joda Time 2.2.
  • Added retries to HttpClientConfiguration.
  • Fixed log formatting for extended stack traces, also now using extended stack traces as the default.
  • Upgraded to FEST Assert 2.0M10.

v0.6.1: Nov 28 2012

  • Fixed incorrect latencies in request logs on Linux.
  • Added ability to register multiple ServerLifecycleListener instances.

v0.6.0: Nov 26 2012

  • Added Hibernate support in dropwizard-hibernate.
  • Added Liquibase migrations in dropwizard-migrations.
  • Renamed http.acceptorThreadCount to http.acceptorThreads.
  • Renamed ssl.keyStorePath to ssl.keyStore.
  • Dropped JerseyClient. Use Jersey’s Client class instead.
  • Moved JDBI support to dropwizard-jdbi.
  • Dropped Database. Use JDBI’s DBI class instead.
  • Dropped the Json class. Use ObjectMapperFactory and ObjectMapper instead.
  • Decoupled JDBI support from tomcat-dbcp.
  • Added group support to Validator.
  • Moved CLI support to argparse4j.
  • Fixed testing support for Optional resource method parameters.
  • Fixed Freemarker support to use its internal encoding map.
  • Added property support to ResourceTest.
  • Fixed JDBI metrics support for raw SQL queries.
  • Dropped Hamcrest matchers in favor of FEST assertions in dropwizard-testing.
  • Split Environment into Bootstrap and Environment, and broke configuration of each into Service‘s #initialize(Bootstrap) and #run(Configuration, Environment).
  • Combined AbstractService and Service.
  • Trimmed down ScalaService, so be sure to add ScalaBundle.
  • Added support for using JerseyClientFactory without an Environment.
  • Dropped Jerkson in favor of Jackson’s Scala module.
  • Added Optional support for JDBI.
  • Fixed bug in stopping AsyncRequestLog.
  • Added UUIDParam.
  • Upgraded to Metrics 2.2.0.
  • Upgraded to Jetty 8.1.8.
  • Upgraded to Mockito 1.9.5.
  • Upgraded to tomcat-dbcp 7.0.33.
  • Upgraded to Mustache 0.8.8.
  • Upgraded to Jersey 1.15.
  • Upgraded to Apache HttpClient 4.2.2.
  • Upgraded to JDBI 2.41.
  • Upgraded to Logback 1.0.7 and SLF4J 1.7.2.
  • Upgraded to Guava 13.0.1.
  • Upgraded to Jackson 2.1.1.
  • Added support for Joda Time.

Note

Upgrading to 0.6.0 will require changing your code. First, your Service subclass will need to implement both #initialize(Bootstrap<T>) and #run(T, Environment). What used to be in initialize should be moved to run. Second, your representation classes need to be migrated to Jackson 2. For the most part, this is just changing imports to com.fasterxml.jackson.annotation.*, but there are some subtler changes in functionality. Finally, references to 0.5.x’s Json, JerseyClient, or JDBI classes should be changed to Jackon’s ObjectMapper, Jersey’s Client, and JDBI’s DBI respectively.

v0.5.1: Aug 06 2012

  • Fixed logging of managed objects.
  • Fixed default file logging configuration.
  • Added FEST-Assert as a dropwizard-testing dependency.
  • Added support for Mustache templates (*.mustache) to dropwizard-views.
  • Added support for arbitrary view renderers.
  • Fixed command-line overrides when no configuration file is present.
  • Added support for arbitrary DnsResolver implementations in HttpClientFactory.
  • Upgraded to Guava 13.0 final.
  • Fixed task path bugs.
  • Upgraded to Metrics 2.1.3.
  • Added JerseyClientConfiguration#compressRequestEntity for disabling the compression of request entities.
  • Added Environment#scanPackagesForResourcesAndProviders for automatically detecting Jersey providers and resources.
  • Added Environment#setSessionHandler.

v0.5.0: Jul 30 2012

  • Upgraded to JDBI 2.38.1.
  • Upgraded to Jackson 1.9.9.
  • Upgraded to Jersey 1.13.
  • Upgraded to Guava 13.0-rc2.
  • Upgraded to HttpClient 4.2.1.
  • Upgraded to tomcat-dbcp 7.0.29.
  • Upgraded to Jetty 8.1.5.
  • Improved AssetServlet:
    • More accurate Last-Modified-At timestamps.
    • More general asset specification.
    • Default filename is now configurable.
  • Improved JacksonMessageBodyProvider:
    • Now based on Jackson’s JAX-RS support.
    • Doesn’t read or write types annotated with @JsonIgnoreType.
  • Added @MinSize, @MaxSize, and @SizeRange validations.
  • Added @MinDuration, @MaxDuration, and @DurationRange validations.
  • Fixed race conditions in Logback initialization routines.
  • Fixed TaskServlet problems with custom context paths.
  • Added jersey-text-framework-core as an explicit dependency of dropwizard-testing. This helps out some non-Maven build frameworks with bugs in dependency processing.
  • Added addProvider to JerseyClientFactory.
  • Fixed NullPointerException problems with anonymous health check classes.
  • Added support for serializing/deserializing ByteBuffer instances as JSON.
  • Added supportedProtocols to SSL configuration, and disabled SSLv2 by default.
  • Added support for Optional<Integer> query parameters and others.
  • Removed jersey-freemarker dependency from dropwizard-views.
  • Fixed missing thread contexts in logging statements.
  • Made the configuration file argument for the server command optional.
  • Added support for disabling log rotation.
  • Added support for arbitrary KeyStore types.
  • Added Log.forThisClass().
  • Made explicit service names optional.

v0.4.4: Jul 24 2012

  • Added support for @JsonIgnoreType to JacksonMessageBodyProvider.

v0.4.3: Jun 22 2012

  • Re-enable immediate flushing for file and console logging appenders.

v0.4.2: Jun 20 2012

  • Fixed JsonProcessingExceptionMapper. Now returns human-readable error messages for malformed or invalid JSON as a 400 Bad Request. Also handles problems with JSON generation and object mapping in a developer-friendly way.

v0.4.1: Jun 19 2012

  • Fixed type parameter resolution in for subclasses of subclasses of ConfiguredCommand.
  • Upgraded to Jackson 1.9.7.
  • Upgraded to Logback 1.0.6, with asynchronous logging.
  • Upgraded to Hibernate Validator 4.3.0.
  • Upgraded to JDBI 2.34.
  • Upgraded to Jetty 8.1.4.
  • Added logging.console.format, logging.file.format, and logging.syslog.format parameters for custom log formats.
  • Extended ResourceTest to allow for enabling/disabling specific Jersey features.
  • Made Configuration serializable as JSON.
  • Stopped lumping command-line options in a group in Command.
  • Fixed java.util.logging level changes.
  • Upgraded to Apache HttpClient 4.2.
  • Improved performance of AssetServlet.
  • Added withBundle to ScalaService to enable bundle mix-ins.
  • Upgraded to SLF4J 1.6.6.
  • Enabled configuration-parameterized Jersey containers.
  • Upgraded to Jackson Guava 1.9.1, with support for Optional.
  • Fixed error message in AssetBundle.
  • Fixed WebApplicationException``s being thrown by ``JerseyClient.

v0.4.0: May 1 2012

  • Switched logging from Log4j to Logback.
    • Deprecated Log#fatal methods.
    • Deprecated Log4j usage.
    • Removed Log4j JSON support.
    • Switched file logging to a time-based rotation system with optional GZIP and ZIP compression.
    • Replaced logging.file.filenamePattern with logging.file.currentLogFilename and logging.file.archivedLogFilenamePattern.
    • Replaced logging.file.retainedFileCount with logging.file.archivedFileCount.
    • Moved request logging to use a Logback-backed, time-based rotation system with optional GZIP and ZIP compression. http.requestLog now has console, file, and syslog sections.
  • Fixed validation errors for logging configuration.
  • Added ResourceTest#addProvider(Class<?>).
  • Added ETag and Last-Modified support to AssetServlet.
  • Fixed off logging levels conflicting with YAML’s helpfulness.
  • Improved Optional support for some JDBC drivers.
  • Added ResourceTest#getJson().
  • Upgraded to Jackson 1.9.6.
  • Improved syslog logging.
  • Fixed template paths for views.
  • Upgraded to Guava 12.0.
  • Added support for deserializing CacheBuilderSpec instances from JSON/YAML.
  • Switched AssetsBundle and servlet to using cache builder specs.
  • Switched CachingAuthenticator to using cache builder specs.
  • Malformed JSON request entities now produce a 400 Bad Request instead of a 500 Server Error response.
  • Added connectionTimeout, maxConnectionsPerRoute, and keepAlive to HttpClientConfiguration.
  • Added support for using Guava’s HostAndPort in configuration properties.
  • Upgraded to tomcat-dbcp 7.0.27.
  • Upgraded to JDBI 2.33.2.
  • Upgraded to HttpClient 4.1.3.
  • Upgraded to Metrics 2.1.2.
  • Upgraded to Jetty 8.1.3.
  • Added SSL support.

v0.3.1: Mar 15 2012

  • Fixed debug logging levels for Log.

v0.3.0: Mar 13 2012

  • Upgraded to JDBI 2.31.3.
  • Upgraded to Jackson 1.9.5.
  • Upgraded to Jetty 8.1.2. (Jetty 9 is now the experimental branch. Jetty 8 is just Jetty 7 with Servlet 3.0 support.)
  • Dropped dropwizard-templates and added dropwizard-views instead.
  • Added AbstractParam#getMediaType().
  • Fixed potential encoding bug in parsing YAML files.
  • Fixed a NullPointerException when getting logging levels via JMX.
  • Dropped support for @BearerToken and added dropwizard-auth instead.
  • Added @CacheControl for resource methods.
  • Added AbstractService#getJson() for full Jackson customization.
  • Fixed formatting of configuration file parsing errors.
  • ThreadNameFilter is now added by default. The thread names Jetty worker threads are set to the method and URI of the HTTP request they are currently processing.
  • Added command-line overriding of configuration parameters via system properties. For example, -Ddw.http.port=8090 will override the configuration file to set http.port to 8090.
  • Removed ManagedCommand. It was rarely used and confusing.
  • If http.adminPort is the same as http.port, the admin servlet will be hosted under /admin. This allows Dropwizard applications to be deployed to environments like Heroku, which require applications to open a single port.
  • Added http.adminUsername and http.adminPassword to allow for Basic HTTP Authentication for the admin servlet.
  • Upgraded to Metrics 2.1.1.

v0.2.1: Feb 24 2012

  • Added logging.console.timeZone and logging.file.timeZone to control the time zone of the timestamps in the logs. Defaults to UTC.
  • Upgraded to Jetty 7.6.1.
  • Upgraded to Jersey 1.12.
  • Upgraded to Guava 11.0.2.
  • Upgraded to SnakeYAML 1.10.
  • Upgraded to tomcat-dbcp 7.0.26.
  • Upgraded to Metrics 2.0.3.

v0.2.0: Feb 15 2012

  • Switched to using jackson-datatype-guava for JSON serialization/deserialization of Guava types.
  • Use InstrumentedQueuedThreadPool from metrics-jetty.
  • Upgraded to Jackson 1.9.4.
  • Upgraded to Jetty 7.6.0 final.
  • Upgraded to tomcat-dbcp 7.0.25.
  • Improved fool-proofing for Service vs. ScalaService.
  • Switched to using Jackson for configuration file parsing. SnakeYAML is used to parse YAML configuration files to a JSON intermediary form, then Jackson is used to map that to your Configuration subclass and its fields. Configuration files which don’t end in .yaml or .yml are treated as JSON.
  • Rewrote Json to no longer be a singleton.
  • Converted JsonHelpers in dropwizard-testing to use normalized JSON strings to compare JSON.
  • Collapsed DatabaseConfiguration. It’s no longer a map of connection names to configuration objects.
  • Changed Database to use the validation query in DatabaseConfiguration for its #ping() method.
  • Changed many HttpConfiguration defaults to match Jetty’s defaults.
  • Upgraded to JDBI 2.31.2.
  • Fixed JAR locations in the CLI usage screens.
  • Upgraded to Metrics 2.0.2.
  • Added support for all servlet listener types.
  • Added Log#setLevel(Level).
  • Added Service#getJerseyContainer, which allows services to fully customize the Jersey container instance.
  • Added the http.contextParameters configuration parameter.

v0.1.3: Jan 19 2012

  • Upgraded to Guava 11.0.1.
  • Fixed logging in ServerCommand. For the last time.
  • Switched to using the instrumented connectors from metrics-jetty. This allows for much lower-level metrics about your service, including whether or not your thread pools are overloaded.
  • Added FindBugs to the build process.
  • Added ResourceTest to dropwizard-testing, which uses the Jersey Test Framework to provide full testing of resources.
  • Upgraded to Jetty 7.6.0.RC4.
  • Decoupled URIs and resource paths in AssetServlet and AssetsBundle.
  • Added rootPath to Configuration. It allows you to serve Jersey assets off a specific path (e.g., /resources/* vs /*).
  • AssetServlet now looks for index.htm when handling requests for the root URI.
  • Upgraded to Metrics 2.0.0-RC0.

v0.1.2: Jan 07 2012

  • All Jersey resource methods annotated with @Timed, @Metered, or @ExceptionMetered are now instrumented via metrics-jersey.
  • Now licensed under Apache License 2.0.
  • Upgraded to Jetty 7.6.0.RC3.
  • Upgraded to Metrics 2.0.0-BETA19.
  • Fixed logging in ServerCommand.
  • Made ServerCommand#run() non-final.

v0.1.1: Dec 28 2011

  • Fixed ManagedCommand to provide access to the Environment, among other things.
  • Made JerseyClient‘s thread pool managed.
  • Improved ease of use for Duration and Size configuration parameters.
  • Upgraded to Mockito 1.9.0.
  • Upgraded to Jetty 7.6.0.RC2.
  • Removed single-arg constructors for ConfiguredCommand.
  • Added Log, a simple front-end for logging.

v0.1.0: Dec 21 2011

  • Initial release