-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (40 loc) · 971 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
42
43
44
45
46
47
48
49
50
51
52
53
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'eu.appsatori:gradle-fatjar-plugin:0.3'
}
}
plugins {
id 'java'
id 'application'
id 'idea'
id 'eu.appsatori.fatjar' version '0.3'
}
group 'holiday-info'
version '1.0-SNAPSHOT'
mainClassName = 'com.mateuszhuta.holiday.HolidayInfoApp'
sourceCompatibility = 1.8
project.ext {
dropWizardConfig = 'config_local.yml'
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'io.dropwizard', name: 'dropwizard-core', version: '1.1.4'
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.10.19'
}
fatJar {
classifier 'fat'
manifest {
attributes 'Main-Class': mainClassName
}
exclude 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.SF'
}
run {
args 'server', dropWizardConfig
}
task stage(dependsOn: ['clean', 'fatJar'])