apply plugin: 'application'
apply plugin: 'net.winterly.gradle.dropwizard'
application {
mainClassName = "com.example.Application"
}
dropwizard {
configuration = "local.yml"
}
This will create basic dropwizard tasks:
- dropwizardCheck as
check local.yml
- dropwizardDropAll as
db drop-all --confirm-delete-everything local.yml
- dropwizardMigrate as
db migrate local.yml
dropwizard {
main = 'com.example.Application'
configuration = "local.yml"
prefix = 'dropwizard'
classpath = 'main'
command("custom") {
args = ['custom', 'local.yml']
// jvmArgs = []
// etc.
}
}
Property | Description |
---|---|
main | Main class name if not configured by application plugin |
classpath | Name of gradle classpath to use, main by default |
prefix | Task names prefix, dropwizard by default, can be empty |
configuration | Relative path to configuration file |