-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
57 lines (41 loc) · 1.27 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
plugins {
id 'java'
}
group 'ch.unibas.dmi.dbis'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile group: 'com.google.code.gson', name: 'gson', version: '2.7'
compile group: 'com.sparkjava', name: 'spark-core', version: '2.7.2'
////// MongoDB
compile group: 'org.mongodb', name: 'mongodb-driver', version: '3.8.2'
////// CLI PARSING
compile group: 'com.github.rvesse', name: 'airline', version: '2.5.0'
////// LOGGING
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2.11.0'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.0'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
jar {
manifest {
attributes "Version": "$version"
attributes "Manifest-Version": "1.0"
attributes 'Main-Class': 'ch.unibas.dmi.dbis.vrem.VREM'
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
task copyResources {
doLast {
copy {
from "config.json"
into "$buildDir/libs/"
}
}
}
task deploy(dependsOn: [build, jar, copyResources])