forked from jonherrmann/etf-topox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
152 lines (127 loc) · 4.07 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
///////////////////////////////////////////////////////////////////////////////////////
//
// ETF-TopoX
//
///////////////////////////////////////////////////////////////////////////////////////
buildscript {
repositories {
maven {
url "http://services.interactive-instruments.de/etfdev-af/plugins-releases-local"
credentials {
username 'ii-bda'
password '6ozhS683'
}}
mavenCentral()
}
dependencies {
classpath group: 'de.interactive_instruments.bda', name: 'etf-bda', version:'1.0.26'
classpath ("org.junit.platform:junit-platform-gradle-plugin:1.2.0")
}
dependencies {
ant.unjar src: configurations.classpath.files.find {it.path.contains('etf')}, dest: 'build/gradle'
}
}
apply from: 'build/gradle/ii-bda.gradle'
apply plugin: 'org.junit.platform.gradle.plugin'
///////////////////////////////////////////////////////////////////////////////////////
group = 'de.interactive_instruments.etf.testdriver.bsxm'
description = "Extension module for the ETF Basex testdriver to create topological graph structures"
ext.basexVersion = '9.0.2'
configurations {
umlDoclet
runtime.exclude group: "org.slf4j", module: "slf4j-nop"
}
repositories {
maven {
url 'https://jetbrains.bintray.com/intellij-third-party-dependencies/'
}
}
dependencies {
compile group: 'de.interactive_instruments', name: 'ii-commons-util', version: '3.0.0' + project.snapshotSuffix
compile group: 'org.jetbrains.intellij.deps', name: 'trove4j', version: '1.0.20160824'
umlDoclet "nl.talsmasoftware:umldoclet:1.0.16"
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.3.1'
testRuntime group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.3.1'
testCompile 'com.tngtech.archunit:archunit-junit5-api:0.9.1'
testRuntime 'com.tngtech.archunit:archunit-junit5-engine:0.9.1'
testCompile group: 'ch.qos.logback', name: 'logback-classic', version: etf_logbackVersion
testCompile group: 'de.interactive_instruments', name: 'ii-commons-util', version:'3.0.0'+project.snapshotSuffix
testCompile "org.xmlunit:xmlunit-core:2.6.2"
testCompile "org.basex:basex:$basexVersion"
testRuntime "org.basex:basex:$basexVersion"
compileOnly "org.basex:basex-api:$basexVersion"
testCompile "org.basex:basex-api:$basexVersion"
}
// Support JUnit 5 in gradle < 4.6
test {
testLogging {
events 'PASSED', 'FAILED', 'SKIPPED'
}
afterSuite { desc, result ->
if (!desc.parent) {
println "\nTest result: ${result.resultType}"
println "Test summary: ${result.testCount} tests, " +
"${result.successfulTestCount} succeeded, " +
"${result.failedTestCount} failed, " +
"${result.skippedTestCount} skipped"
}
}
}
sourceSets {
test {
resources {
srcDir 'src/test/resources'
srcDir 'src/main/resources'
}
}
}
def dependencyLibs =
configurations.compile.filter { it.name.startsWith('trove') } +
configurations.compile.filter { it.name.startsWith('ii-commons-util') }
jar {
archiveName = "topox.jar"
}
javadoc {
source = sourceSets.main.allJava
options.docletpath = configurations.umlDoclet.files.asType(List)
options.doclet = "nl.talsmasoftware.umldoclet.UMLDoclet"
options.addStringOption "umlImageFormat", "SVG"
options.addStringOption "umlIncludeHyperlinks", "true"
options.addStringOption "umlBasePath", "docs/javadoc"
destinationDir = file("$projectDir/docs/javadoc")
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
task xar(type: Jar, dependsOn: jar) {
doFirst {
manifest {
attributes(
jar.manifest.getAttributes()
)
}
}
group = 'build'
archiveName = 'TopoX.xar'
extension = 'xar'
into('topox') {
from jar
from dependencyLibs
from file("$projectDir/src/main/xquery/TopoX.xq")
}
into('') {
from file("$projectDir/src/packaging/expath-pkg.xml")
filter{ it.replaceAll('@@libVersion@@', project.version)}
}
from file("$projectDir/src/packaging/basex.xml")
}
artifacts {
archives sourcesJar
archives xar
}
junitPlatformTest.dependsOn xar