This repository has been archived by the owner on Dec 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
133 lines (110 loc) · 3.94 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'jacoco'
archivesBaseName = "xlcore"
group = 'com.github.libris'
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceSets {
main {
java { srcDirs = [] }
groovy { srcDir 'src/main/' }
}
test {
groovy { srcDir 'src/test/groovy/' }
}
}
test {
jacoco {
append = false
destinationFile = file("$buildDir/jacoco/jacocoTest.exec")
classDumpFile = file("$buildDir/jacoco/classpathdumps")
}
}
test.testLogging {
showStandardStreams true
exceptionFormat "full"
}
jacoco {
toolVersion = "0.7.6.201602180812"
reportsDir = file("$buildDir/coverage_report")
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination "${buildDir}/coverage_report/html"
}
}
repositories {
mavenCentral()
maven { url "http://repository.codehaus.org/" }
maven { url "https://jitpack.io/" }
}
dependencies {
def groovyVersion=GroovySystem.getVersion()
// KB tools
compile 'com.github.libris:jmarctools:bb97de39cb41e7455ecb29af0ed5f27f2e9cc797'
// Common tools
compile "org.codehaus.groovy:groovy-all:${groovyVersion}"
compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.12'
compile 'commons-cli:commons-cli:1.2'
compile 'commons-io:commons-io:2.4'
compile 'commons-codec:commons-codec:1.7'
compile "com.google.guava:guava:16.0.1"
compile 'commons-collections:commons-collections:3.2.1'
compile "stax:stax:1.2.0"
compile "stax:stax-api:1.0.1"
compile 'com.damnhandy:handy-uri-templates:2.0.4'
compile 'org.apache.commons:commons-dbcp2:2.0.1'
compile 'org.apache.jena:apache-jena-libs:3.0.1'
compile group: 'xerces', name: 'xercesImpl', version: '2.11.0' //KP
// Logging
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.8.2'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.8.2'
// Caching
compile 'org.apache.commons:commons-collections4:4.1'
// Integration
compile "org.apache.commons:commons-lang3:3.3.2"
compile 'com.vividsolutions:jts:1.13'
compile 'org.postgresql:postgresql:9.4.1212.jre7'
// profiling and test
testCompile "org.gperfutils:gprof:0.3.0-groovy-2.3"
testCompile 'cglib:cglib-nodep:3.1'
testCompile "org.spockframework:spock-core:1.0-groovy-2.4"
}
task(groovy, dependsOn: "classes", type: JavaExec) {
description "Run a Groovy Script (USAGE: -Dargs=\"<script> [...]\")"
classpath = sourceSets.test.runtimeClasspath
main = "groovy.ui.GroovyMain"
args(System.getProperty("args", "").split() as String[])
}
task(console, dependsOn: 'classes', type: JavaExec) {
description "Launch a Groovy Console"
classpath = sourceSets.main.runtimeClasspath
main = 'groovy.ui.Console'
}
task(convertIso2709ToJson, dependsOn: 'classes', type: JavaExec) {
description "Convert an ISO2709 file to JSON (USAGE: -Dargs='<infile>')"
classpath = sourceSets.main.runtimeClasspath
main = 'whelk.converter.MarcJSONConverter'
args(System.getProperty('args', "").split() as String[])
}
task runMarcFrame(dependsOn: 'classes', type: JavaExec) {
description "Convert a MarcJson file to JsonLD (USAGE: -Dargs='<source>')"
classpath = sourceSets.main.runtimeClasspath
main = 'whelk.converter.marc.MarcFrameCli'
args(System.getProperty('args', "").split() as String[])
}
task vocabFromMarcFrame(dependsOn: 'classes', type: JavaExec) {
description "Extract a vocabulary from marcframe"
classpath = sourceSets.main.runtimeClasspath
main = 'whelk.converter.marc.MarcFrameVocabExtractor'
}
task jsonldToTurtle(dependsOn: 'classes', type: JavaExec) {
description "Convert a JSON-LD file to Turtle (USAGE: -Dargs='<context> <source>')"
classpath = sourceSets.main.runtimeClasspath
main = 'whelk.plugin.JsonLdToTurtle'
args(System.getProperty('args', "").split() as String[])
}