-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
90 lines (78 loc) · 2.46 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
plugins {
id 'java'
id 'application'
id 'checkstyle'
}
repositories {
mavenCentral()
flatDir {
dirs 'lib'
}
}
sourceCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
dependencies {
implementation group: 'org.boofcv', name: 'all', version: '0.23'
implementation group: 'net.sf.trove4j', name: 'trove4j', version: '3.0.3'
implementation group: 'com.google.guava', name: 'guava', version: '19.0'
implementation group: 'com.google.code.jlibav', name: 'jlibav', version: '0.2.1'
implementation group: 'commons-cli', name: 'commons-cli', version: '1.3.1'
implementation group: 'com.google.code.gson', name: 'gson', version: '1.7.2'
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.5'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.5'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.8'
implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jdk8', version: '2.9.8'
implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: '2.9.8'
implementation 'com.sparkjava:spark-core:2.3'
implementation 'commons-io:commons-io:2.4'
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.1'
testImplementation group: 'org.hamcrest', name: 'hamcrest-core', version: '1.3'
testImplementation group: 'org.hamcrest', name: 'hamcrest-library', version: '1.3'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '1.9.+'
}
test {
testLogging {
showStandardStreams = true
}
}
sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDir 'resources'
}
}
test {
java {
srcDir 'test'
}
resources {
srcDir 'testresources'
}
}
}
checkstyle {
toolVersion '8.19'
configFile file("checkstyle/checkstyle.xml")
}
tasks.withType(Checkstyle) {
reports {
html.enabled true
xml.enabled false
}
}
mainClassName = 'org.vitrivr.cthulhu.runners.CthulhuRunner'
jar {
manifest {
attributes 'Main-Class': 'org.vitrivr.cthulhu.runners.CthulhuRunner'
}
archiveName = 'cthulhu.jar'
from({
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}) {
exclude '*workspace*'
}
}
task deploy(dependsOn: [build, jar])