Newer
Older
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
/*
Copyright (c) 2018 Vereign AG [https://www.vereign.com]
This is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
apply plugin: 'java'
compileJava {options.encoding = "UTF-8"}
apply plugin: 'eclipse'
repositories {
mavenCentral()
mavenLocal()
gradlePluginPortal()
}
configurations {
cucumberRuntime {
extendsFrom testRuntimeOnly
}
}
def buildTags = '~@test,not @wip'
if (project.hasProperty("tags")) {
buildTags = tags + ',not @wip'
}
def baseUrl
if (project.hasProperty("baseUrl")) {
baseUrl = project.property("baseUrl")
}
tasks.withType(Test) {
systemProperties = System.getProperties()
systemProperties.remove("java.endorsed.dirs") // needs to be removed from Java 9
}
task regressionSuite(type: Test) {
if (System.getProperty('env') == null) {
systemProperty "env", "${baseUrl}"
}
systemProperty "file.encoding", "utf-8"
systemProperty "baseUrl", "${baseUrl}"
systemProperties System.getProperties()
include '**/RegressionTestSuite.class'
outputs.upToDateWhen { false }
}
dependencies {
configurations.all {
resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds'
}
testImplementation group: 'io.cucumber', name: 'cucumber-picocontainer', version: '4.3.0'
testImplementation group: 'junit', name: 'junit', version: '4.+'
implementation 'org.apache.commons:commons-lang3:3.4'
implementation 'joda-time:joda-time:2.8.+'
implementation 'org.easytesting:fest-assert:1.4'
implementation 'org.codehaus.jackson:jackson-mapper-asl:1.9.+'
implementation(group: "com.github.fge", name: "json-schema-validator", version: "2.2.+")
implementation(group: "com.google.code.gson", name: "gson", version: "+")
implementation(group: "io.rest-assured", name: "rest-assured", version: "4.+")
implementation(group: "com.jayway.jsonpath", name: "json-path", version: "+")
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '+'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '+'
implementation group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.60'
implementation 'org.bouncycastle:bcpkix-jdk15on:1.51'
implementation group: 'net.sourceforge.tess4j', name: 'tess4j', version: '4.4.1'
implementation 'io.github.prashant-ramcharan:courgette-jvm:3.+'