-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
35 lines (28 loc) · 831 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
apply plugin: 'java'
version = '1.0'
ext {
gsonVersion = '2.7'
sparkVersion = '2.5'
logbackVersion = '1.1.7'
}
repositories {
jcenter()
}
dependencies {
compile group: 'com.sparkjava', name: 'spark-core', version: sparkVersion
compile group: 'com.google.code.gson', name: 'gson', version: gsonVersion
compile group: 'ch.qos.logback', name: 'logback-classic', version: logbackVersion
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title' : 'Spark Microservice',
'Implementation-Version' : version,
'Main-Class' : 'io.datawire.example.HelloWorldService'
}
baseName = project.name + '-fat'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
task wrapper(type: Wrapper) {
version = '2.13'
}