-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
68 lines (56 loc) · 1.5 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
apply plugin: 'java'
jar {
manifest {
attributes 'Main-Class': 'osmparser.Osmparser'
}
}
apply plugin: 'maven'
apply plugin: 'jacoco'
group = 'com.karlin.osm-graph-parser'
version = '0.13'
description = "Java program that parses OSM XML files into a json graph representation.Java program that parses OSM XML files into a json graph representation."
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
maven {
url("https://plugins.gradle.org/m2/")
}
}
test {
testLogging {
exceptionFormat = 'full'
}
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'osm-graph-parser',
'Implementation-Version': '0.1',
'Main-Class': 'osmparser.Main'
}
baseName = 'osmparser'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
repositories { jcenter() }
dependencies { testCompile 'org.mockito:mockito-core:2.8.9' }
dependencies {
compile (
'com.google.code.gson:gson:2.8.0',
'com.fasterxml:aalto-xml:1.0.0',
'commons-cli:commons-cli:1.4'
)
testCompile group: 'junit', name: 'junit', version:'4.12'
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
}
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it,
exclude: ['main/**'])
})
}
}
check.dependsOn jacocoTestReport