Dropwizard + Gradle = ♥
Minimal example of getting Dropwizard going with Gradle.
Dropwizard version
1.0.5
Build
Run ./gradlew clean oneJar
. The resulting JAR will be saved as ./build/libs/dropwizard-gradle-<<version>>-standalone.jar
.
This example is using the Gradle OneJar Plugin which will create a JAR file of the project including all dependencies, similar to the Maven Assembly Plugin or the Maven Shade Plugin.
Run
java -jar build/libs/dropwizard-gradle-<<version>>-standalone.jar server