-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
62 lines (50 loc) · 1.25 KB
/
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
54
55
56
57
58
59
60
61
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'application'
def defaultEncoding = 'UTF-8'
def jdkVersion = '1.8'
archivesBaseName = 'it-events'
mainClassName = 'tsukurukai.it_events.ItEventsApplication'
project.ext {
dropWizardConfig = './conf/it-events.yml'
}
repositories {
mavenCentral()
}
dependencies {
compile 'io.dropwizard:dropwizard-core:0.7.0'
compile 'org.projectlombok:lombok:1.14.2'
compile 'org.apache.httpcomponents:httpclient:4.3.4'
testCompile 'org.codehaus.groovy:groovy-all:2.0.8'
testCompile 'org.spockframework:spock-core:0.7-groovy-2.0'
}
compileJava {
options.encoding = defaultEncoding
}
compileTestJava {
options.encoding = defaultEncoding
}
idea {
project {
jdkName = jdkVersion
languageLevel = jdkVersion
}
}
jar {
from (configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }) {
exclude 'META-INF/MANIFEST.MF'
exclude 'META-INF/*.SF'
exclude 'META-INF/*.DSA'
exclude 'META-INF/*.RSA'
}
manifest {
attributes('Main-Class': 'tsukurukai.it_events.ItEventsApplication')
}
}
run {
args 'server', dropWizardConfig
}
task stage(dependsOn: 'build') {
mustRunAfter 'clean'
}