Dropwizard Goodies

Insubstantial but useful (and reusable) bits of code for use with Dropwizard services.

License

License

GroupId

GroupId

io.ifar.dw-goodies
ArtifactId

ArtifactId

dw-goodies
Last Version

Last Version

5
Release Date

Release Date

Type

Type

jar
Description

Description

Dropwizard Goodies
Insubstantial but useful (and reusable) bits of code for use with Dropwizard services.
Project URL

Project URL

https://github.com/Multifarious/dw-goodies
Project Organization

Project Organization

Multifarious, Inc.
Source Code Management

Source Code Management

https://github.com/Multifarious/dw-goodies

Download dw-goodies

How to add to project

<!-- https://jarcasting.com/artifacts/io.ifar.dw-goodies/dw-goodies/ -->
<dependency>
    <groupId>io.ifar.dw-goodies</groupId>
    <artifactId>dw-goodies</artifactId>
    <version>5</version>
</dependency>
// https://jarcasting.com/artifacts/io.ifar.dw-goodies/dw-goodies/
implementation 'io.ifar.dw-goodies:dw-goodies:5'
// https://jarcasting.com/artifacts/io.ifar.dw-goodies/dw-goodies/
implementation ("io.ifar.dw-goodies:dw-goodies:5")
'io.ifar.dw-goodies:dw-goodies:jar:5'
<dependency org="io.ifar.dw-goodies" name="dw-goodies" rev="5">
  <artifact name="dw-goodies" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.ifar.dw-goodies', module='dw-goodies', version='5')
)
libraryDependencies += "io.ifar.dw-goodies" % "dw-goodies" % "5"
[io.ifar.dw-goodies/dw-goodies "5"]

Dependencies

provided (2)

Group / Artifact Type Version
io.dropwizard : dropwizard-core jar 0.8.0
io.dropwizard : dropwizard-jdbi jar 0.8.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

dw-goodies


This repository collects odds and ends for Dropwizard services that have proven consistently useful.

Setting Up for the Build Number Command

The BuildNumber command requires the following additions to the Maven project that is used to build the Dropwizard service in question.

First, the <scm>...</scm> section of the POM should be filled in, e.g.:

<scm>
  <developerConnection>scm:git:[email protected]:Multifarious/dw-goodies.git</developerConnection>
</scm>

Second, the maven-scm-plugin (provides Git integration), buildnumber-maven-plugin (populates Git SHA into ${buildNumber}), and maven-jar-plugin (puts ${buildNumber} in the JAR manifest) need to all be set up to work together:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-scm-plugin</artifactId>
  <version>1.8.1</version>
  <configuration>
    <connectionType>developerConnection</connectionType>
  </configuration>
</plugin>
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-jar-plugin</artifactId>
  <configuration>
    <archive>
...
    <manifestEntries>
      <Implementation-Build>${buildNumber}</Implementation-Build>
    </manifestEntries>
    </archive>
  </configuration>
</plugin>
<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>buildnumber-maven-plugin</artifactId>
  <version>1.2</version>
  <executions>
    <execution>
      <phase>validate</phase>
      <goals>
        <goal>create</goal>
      </goals>
    </execution>
  </executions>
  <!-- alter these to inlfluence how build numbers are applied/enforced w.r.t. local changes and upstream -->
  <configuration>
    <doCheck>false</doCheck>
    <doUpdate>false</doUpdate>
  </configuration>
</plugin>

Access with Maven

Coordinates

Include the following in your pom.xml:

<dependency>
  <groupId>io.ifar</groupId>
  <artifactId>dw-goodies</artifactId>
  <version>0-SNAPSHOT</version>
</dependency>

Snapshots

Snapshots are available from the following Maven repository:

<repository>
  <id>multifarious-snapshots</id>
  <name>Multifarious, Inc. Snapshot Repository</name>
  <url>http://repository-multifarious.forge.cloudbees.com/snapshot/</url>
  <snapshots>
    <enabled>true</enabled>
  </snapshots>
  <releases>
    <enabled>false</enabled>
  </releases>
</repository>

Releases

None as yet, but when there are, they will be published via Maven Central.

License

The license is BSD 2-clause. This information is also present in the LICENSE file and in the pom.xml.

io.ifar.dw-goodies

Multifarious, Inc.

Versions

Version
5
4
3
2
1