forked from getodk/javarosa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
65 lines (55 loc) · 1.31 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
plugins {
id 'java'
id 'checkstyle'
}
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDirs = ['src']
}
}
test {
java {
srcDirs = ['test']
}
resources {
srcDirs = ['resources']
}
}
}
targetCompatibility = '1.7'
sourceCompatibility = '1.7'
dependencies {
// Be sure to update dependencies in pom.xml to match
compileOnly group: 'net.sf.kxml', name: 'kxml2', version: '2.3.0'
compile group: 'joda-time', name: 'joda-time', version: '2.9.9'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'net.sf.kxml', name: 'kxml2', version: '2.3.0'
}
// Required to use fileExtensions property in checkstyle file
checkstyle {
toolVersion = '7.6.1'
}
jar {
baseName = 'opendatakit-javarosa'
// Be sure to update version in pom.xml to match
// snapshot release = x.x.x-SNAPSHOT
// production release = x.x.x
version = '2.6.1'
archiveName = baseName + '-' + version + '.jar'
manifest {
attributes 'Manifest-Version': "$jar.version"
}
}
// Useful for testing
task explodedJar(type: Copy) {
into "$buildDir/libs/$jar.baseName $jar.version"
with jar
}
// TODO: does not build UML diagrams
javadoc {
failOnError = false
}