/dropwizard-trim

Trims dropwizard config values

Primary LanguageJavaApache License 2.0Apache-2.0

dropwizard-trim Build StatusCoverage Status

This bundle trims config values of dropwizard YAML config file.

Usage

This makes it easier to make the application not break due to manual errors when sleepy DevOps adds a space to a config value

Build instructions

  • Clone the source:

    git clone github.com/vivekkothari/dropwizard-trim
    
  • Build

    mvn install
    

Maven Dependency

  • Use the following maven dependency:
<dependency>
    <groupId>com.github.vivekkothari</groupId>
    <artifactId>dropwizard-trim</artifactId>
    <version>1.2.4</version>
</dependency>

Using Trim bundle

Bootstrap

    @Override
    public void initialize(final Bootstrap...) {
        bootstrap.addBundle(new ConfigTrimmingBundle());
    }