forked from concordion/concordion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
67 lines (54 loc) · 2.27 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
apply plugin: 'java'
apply plugin: 'wrapper'
apply plugin: 'jacoco'
description = 'Concordion is an open source framework for Java that lets you turn a plain English description of a requirement into an automated test'
wrapper {
// If changing this, you may need to update the distributionUrl to http rather than https in gradle/wrapper/gradle-wrapper.properties to workaround a TravisCI with openjdk6. The other fixes in http://stackoverflow.com/questions/29584328/gradlew-bat-and-gradlew-sslhandshakeexception#answer-30924895 didn't work for me.
gradleVersion = "4.10.3"
}
repositories {
jcenter()
}
ext {
flexmarkVersion = '0.61.20'
}
dependencies {
compile 'junit:junit:4.12',
'ognl:ognl:3.1',
// TODO document how to use other flexmark extensions
"com.vladsch.flexmark:flexmark:$flexmarkVersion",
"com.vladsch.flexmark:flexmark-ext-gfm-strikethrough:$flexmarkVersion",
"com.vladsch.flexmark:flexmark-ext-tables:$flexmarkVersion",
"com.vladsch.flexmark:flexmark-profile-pegdown:$flexmarkVersion"
compile ('xom:xom:1.2.5') {
exclude group: 'xalan', module: 'xalan'
exclude group: 'xerces', module: 'xercesImpl'
exclude group: 'xml-apis', module: 'xml-apis'
}
testCompile ('org.concordion:concordion-embed-extension:1.1.2') {
exclude group: 'org.concordion', module: 'concordion'
}
testCompile 'com.github.stefanbirkner:system-rules:1.16.0',
"com.vladsch.flexmark:flexmark-ext-abbreviation:$flexmarkVersion"
}
sourceSets {
testDummies { // "crash test dummies" - specs+fixtures that are used by the tests but aren't run as tests themselves
java {
srcDir 'src/test-dummies/java'
}
resources {
srcDir 'src/test-dummies/resources'
}
compileClasspath = sourceSets.main.output + configurations.compile
}
test {
compileClasspath += sourceSets.testDummies.output
runtimeClasspath += sourceSets.testDummies.output
}
}
sourceCompatibility = 8
targetCompatibility = 8
test {
systemProperties['concordion.output.dir'] = "${reporting.baseDir}"
}
compileTestJava.dependsOn compileTestDummiesJava