-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
81 lines (68 loc) · 2.36 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
// When Gradle can't find something, try this: https://medium.com/@radimvaculik/gradle-please-1ecfd50e9450
// http://gradleplease.appspot.com/
plugins {
id 'java'
id 'checkstyle'
}
repositories {
mavenCentral()
}
sourceSets {
//noinspection GroovyAssignabilityCheck
main {
//noinspection GroovyAssignabilityCheck
java {
srcDirs = ['src']
}
resources {
srcDirs = ['res']
}
}
}
compileJava {
options.compilerArgs << "-Xlint:deprecation"
}
configurations {
// https://discuss.gradle.org/t/how-to-include-dependencies-in-jar/19571/5
// configuration that holds jars to include in the jar
extraLibs
}
dependencies {
// Be sure to update dependencies in pom.xml to match
compile group: 'org.opendatakit', name: 'opendatakit-javarosa', version: '2.11.2'
compile group: 'org.slf4j', name: 'slf4j-nop', version: '1.7.21'
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
// compile group: 'org.apache.commons', name: 'commons.io', version: '1.3.2'
// compile group: 'org.apache.commons', name: 'commons.io', version: 'latest.release'
compile 'org.apache.commons:commons-io:1.3.2'
compile group: 'org.apache.commons', name: 'commons-collections4', version: '4.2'
extraLibs group: 'org.opendatakit', name: 'opendatakit-javarosa', version: '2.11.2'
extraLibs group: 'org.slf4j', name: 'slf4j-nop', version: '1.7.21'
extraLibs group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
compile 'org.apache.commons:commons-io:1.3.2'
extraLibs group: 'org.apache.commons', name: 'commons-collections4', version: '4.2'
configurations.compile.extendsFrom(configurations.extraLibs)
}
// Required to use fileExtensions property in checkstyle file
checkstyle {
toolVersion = '7.6.1'
}
jar {
baseName = 'xform-test'
// Be sure to update version in pom.xml to match
// snapshot release = x.x.x-SNAPSHOT
// production release = x.x.x
version = '0.3.3'
archiveName = baseName + '-' + version + '.jar'
manifest {
attributes 'Manifest-Version': "$jar.version"
attributes 'Main-Class': "org.pma2020.xform_test.XFormTest"
}
from {
configurations.extraLibs.collect { it.isDirectory() ? it : zipTree(it) }
}
}
// TODO: does not build UML diagrams
javadoc {
failOnError = false
}