This repository was archived by the owner on May 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
81 lines (65 loc) · 2.21 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
import static org.opendatakit.gradle.Util.getVersionName
import static org.opendatakit.gradle.Util.makeExecutableJar
import static org.opendatakit.gradle.Util.zip
plugins {
id 'java'
id 'idea'
id 'de.fuerstenau.buildconfig' version '1.1.8'
id 'jacoco'
}
group 'org.opendatakit'
version '1.0.6'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
// CLI
compile group: 'commons-cli', name: 'commons-cli', version: '1.4'
compile group: 'de.vandermeer', name: 'asciitable', version: '0.3.2'
// HTTP
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.6'
compile group: 'org.apache.httpcomponents', name: 'fluent-hc', version: '4.5.6'
testCompile group: 'com.github.dreamhead', name: 'moco-core', version: '0.12.0'
// JSON
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.9.8'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.8'
// Logging & reporting
runtime group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'org.slf4j', name: 'jcl-over-slf4j', version: '1.7.25'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
// Templating
// compile group: 'com.github.jknack', name: 'handlebars', version: '4.1.2'
compile 'io.pebbletemplates:pebble:3.0.7'
// Testing
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.3.1'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.3.1'
testCompile group: 'org.hamcrest', name: 'hamcrest-library', version: '1.3'
}
buildConfig {
appName = 'ODK Aggregate CLI'
version = getVersionName()
clsName = 'BuildConfig'
packageName = 'org.opendatakit.briefcase.buildconfig'
}
jar {
manifest {
attributes "Main-Class": "org.opendatakit.aggregate.cli.Launcher"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
doLast {
makeExecutableJar("${buildDir}/libs/${archivesBaseName}-${version}.jar", "${buildDir}/libs/aggregate-cli")
zip("${buildDir}/libs/aggregate-cli")
}
}
test {
useJUnitPlatform()
}
jacocoTestReport {
reports {
xml.enabled true
}
}