-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
34 lines (29 loc) · 864 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
repositories {
mavenCentral()
}
apply plugin: 'java'
//apply plugin: 'jetty'
apply plugin: 'application'
mainClassName = 'hello.MainServer'
applicationName = 'app'
defaultTasks = ['clean', 'jar']
dependencies {
compile 'com.sparkjava:spark-core:2.3'
compile 'org.json:json:20141113'
compile 'com.google.code.gson:gson:1.7.2'
compile files("lib/db4o-8.0.249.16098-all-java5.jar")
compile 'com.sparkjava:spark-template-mustache:1.0.0'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
jar {
manifest {
attributes 'Main-Class': 'hello.MainServer'
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } {
// remove all signature files
exclude 'META-INF/*.SF'
exclude 'META-INF/*.DSA'
exclude 'META-INF/*.RSA'
}
}
task stage(dependsOn: ['clean', 'installApp'])