Dropwizard guice integration

License Build Status Appveyor build status codecov

DOCUMENTATION: http://xvik.github.io/dropwizard-guicey/

Additional repositories:

Support:

About

Dropwizard 2.0.10 guice 4.2.3 integration.

Features:

Sponsors

    Channel

If guicey makes your life easier, you can support its development.

Thanks to

Setup

Releases are published to bintray jcenter (package appear immediately after release) and then to maven central (require few days after release to be published).

JCenter Maven Central

May be used through extensions project BOM or directly.

Maven:

<dependency>
  <groupId>ru.vyarus</groupId>
  <artifactId>dropwizard-guicey</artifactId>
  <version>5.1.0</version>
</dependency>

Gradle:

implementation 'ru.vyarus:dropwizard-guicey:5.1.0'
Dropwizard Guicey
2.0 5.1.0
1.3 4.2.2
1.1, 1.2 4.1.0
1.0 4.0.1
0.9 3.3.0
0.8 3.1.0
0.7 1.1.0

BOM

Guicey pom may be also used as maven BOM.

NOTE: If you use guicey extensions then use extensions BOM instead (it already includes guicey BOM).

BOM usage is highly recommended as it allows you to correctly update dropwizard dependencies.

Gradle:

dependencies {
    implementation platform('ru.vyarus:dropwizard-guicey:5.1.0')
    // uncomment to override dropwizard and its dependencies versions    
    //implementation platform('io.dropwizard:dropwizard-dependencies:2.0.10')

    // no need to specify versions
    implementation 'ru.vyarus:dropwizard-guicey'

    implementation 'io.dropwizard:dropwizard-auth'
    implementation 'com.google.inject:guice-assistedinject'   

    testImplementation 'io.dropwizard:dropwizard-test'
    testImplementation 'org.spockframework:spock-core'
}

Maven:

<dependencyManagement>  
    <dependencies>
        <dependency>
            <groupId>ru.vyarus</groupId>
            <artifactId>dropwizard-guicey</artifactId>
            <version>5.1.0</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency> 
        <!-- uncomment to override dropwizard and its dependencies versions  
        <dependency>
            <groupId>io.dropwizard/groupId>
            <artifactId>dropwizard-dependencies</artifactId>
            <version>2.0.10</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency> -->                 
    </dependencies>
</dependencyManagement>

<dependencies>
    <dependency>
        <groupId>ru.vyarus</groupId>
        <artifactId>dropwizard-guicey</artifactId>
    </dependency>
</dependencies>

BOM includes:

BOM Artifact
Guicey itself ru.vyarus:dropwizard-guicey
Dropwizard BOM io.dropwizard:dropwizard-bom
Guice BOM com.google.inject:guice-bom
HK2 bridge org.glassfish.hk2:guice-bridge
System rules (required for StartupErrorRule) com.github.stefanbirkner:system-rules
Spock org.spockframework:spock-core

Snapshots

Snapshots may be used through JitPack Add [JitPack](https://jitpack.io/#ru.vyarus/dropwizard-guicey) repository: ```groovy repositories { maven { url 'https://jitpack.io' } } ``` For spring dependencies plugin (when guicey pom used as BOM): ```groovy dependencyManagement { resolutionStrategy { cacheChangingModulesFor 0, 'seconds' } imports { mavenBom "ru.vyarus:dropwizard-guicey:master-SNAPSHOT" } } ``` For direct guicey dependency: ```groovy configurations.all { resolutionStrategy.cacheChangingModulesFor 0, 'seconds' } dependencies { implementation 'ru.vyarus:dropwizard-guicey:master-SNAPSHOT' } ``` Note that in both cases `resolutionStrategy` setting required for correct updating snapshot with recent commits (without it you will not always have up-to-date snapshot) OR you can depend on exact commit: * Go to [JitPack project page](https://jitpack.io/#ru.vyarus/dropwizard-guicey) * Select `Commits` section and click `Get it` on commit you want to use and use commit hash as version: `ru.vyarus:dropwizard-guicey:56537f7d23` Maven: ```xml jitpack.io https://jitpack.io ru.vyarus dropwizard-guicey master-SNAPSHOT pom import ru.vyarus dropwizard-guicey ``` Or simply change version if used as direct dependency (repository must be also added): ```xml ru.vyarus dropwizard-guicey master-SNAPSHOT ```

Usage

Read documentation

Might also like


java lib generator