Skip to content

Instantly share code, notes, and snippets.

@karol-lotkowski
Created October 13, 2015 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karol-lotkowski/aac98ab974d90e214113 to your computer and use it in GitHub Desktop.
Save karol-lotkowski/aac98ab974d90e214113 to your computer and use it in GitHub Desktop.
Gradle application plugin and Dropwizard execution
apply plugin: 'application'
sourceCompatibility = 1.8
project.ext {
configPath = "$rootProject.projectDir/config/"
dropwizardVersion = '0.8.2'
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'io.dropwizard', name: 'dropwizard-core', version: dropwizardVersion
}
mainClassName = "com.karollotkowski.cleancode.CleanCodeApplication"
run {
args 'server', configPath + 'app_config.yml'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment