-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
41 lines (34 loc) · 957 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
apply plugin: 'application'
repositories {
jcenter()
}
dependencies {
compile "com.google.code.gson:gson:$GSON_VERSION"
compile "com.squareup.retrofit2:retrofit:$RETROFIT_VERSION"
compile "com.squareup.retrofit2:converter-jackson:$RETROFIT_VERSION"
compile "io.dropwizard:dropwizard-core:$DROPWIZARD_VERSION"
compile "io.dropwizard:dropwizard-assets:$DROPWIZARD_VERSION"
compile "com.squareup.okhttp3:logging-interceptor:$LOGGINGINTERCEPTOR_VERSION"
}
distributions {
main {
contents {
from { "config.yml" }
}
}
}
mainClassName = 'app.WorkServicesApplication server "`dirname $0`/../config.yml"'
run {
args 'server', 'config.yml'
main = 'app.WorkServicesApplication'
}
task processManifest {
doLast{
copy{
from 'src/main/resources/manifest.yml'
into rootDir
filter(org.apache.tools.ant.filters.ReplaceTokens, tokens: [APP_NAME: rootProject.name])
}
}
}
build.dependsOn processManifest