-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
63 lines (49 loc) · 1.26 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
62
63
apply plugin: 'java'
repositories {
//mavenCentral()
jcenter()
flatDir {
dirs 'libs'
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
configurations {
provided
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
compileClasspath += configurations.provided
}
test {
java {
srcDirs = ["src/test/java"]
}
}
}
dependencies {
compile 'com.sparkjava:spark-core:2.5'
compile 'org.slf4j:slf4j-simple:1.7.21'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.7.4'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.7.4'
compile group: 'com.google.guava', name: 'guava', version: '19.0'
compile group: 'com.google.code.gson', name: 'gson', version: '2.6.2'
compile name: 'java-grouper-1.8.0-all'
testCompile 'junit:junit:4.12'
}
jar {
baseName = 'grouperserve'
version = '0.2.0'
manifest {
attributes 'Main-Class': 'ch.eonum.grouperserve.GrouperServe'
}
// Build a 'fat-jar', i. e. include dependencies.
from {
(configurations.runtime).collect {
it.isDirectory() ? it : zipTree(it)
}
}
}