-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
78 lines (65 loc) · 2.23 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
plugins {
id "com.github.hierynomus.license" version "0.16.1"
id 'nebula.release' version '11.0.0'
id "com.github.hierynomus.jython" version "0.11.0"
}
apply plugin: 'java'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
if (!project.hasProperty('release.scope')) {
project.ext['release.scope'] = 'patch'
}
if (!project.hasProperty('release.useLastTag')) {
project.ext['release.useLastTag'] = true
}
repositories {
mavenLocal()
mavenCentral()
maven {
url 'https://dist.xebialabs.com/public/maven2'
}
}
dependencies {
// Place rest-assured before JUnit dependency to make sure correct Hamcrest is used
testImplementation 'io.rest-assured:rest-assured:5.2.0'
testImplementation "junit:junit:4.13"
testImplementation "com.googlecode.json-simple:json-simple:1.1.1"
testImplementation "org.assertj:assertj-core:3.23.1"
testImplementation "org.testcontainers:testcontainers:1.17.5"
testImplementation "org.skyscreamer:jsonassert:1.5.1"
jython python(":httplib2:0.11.3") {
copy {
from "python2/httplib2"
}
}
}
test {
// Auto detected Unit tests only, exclude the end to end integration test
exclude '**/*IntegrationTest.class'
// show standard out and standard error of the test JVM(s) on the console
testLogging.showStandardStreams = true
}
task integrationTest(type: Test, dependsOn: ['build']) {
// do not automatically scan for tests
scanForTestClasses = false
// explicitly include the integration test
include '**/*IntegrationTest.class'
// To run tests -
// 1. Docker and Docker Compose must be installed
// 2. To run the test - ./gradlew clean integrationTest
// The test will set up a temporary xlr/mockserver testbed using docker. The mockserver
// will serve up Bamboo Rest Api Responses
// After testing is complete, the test docker containers are stopped and removed.
// show standard out and standard error of the test JVM(s) on the console
testLogging.showStandardStreams = true
}
license {
header rootProject.file('License.md')
strictCheck false
excludes(["**/*.json", "**/httplib2/**/*.*"])
ext.year = Calendar.getInstance().get(Calendar.YEAR)
ext.name = 'XEBIALABS'
}