-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
55 lines (48 loc) · 1.54 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
buildscript {
dependencies {
classpath "net.serenity-bdd:serenity-gradle-plugin:2.0.70"
}
}
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.41'
id "io.gitlab.arturbosch.detekt" version "1.4.0"
id "ua.eshepelyuk.ManifestClasspath" version "1.0.0"
}
defaultTasks 'clean'
group 'SerenityKotlin'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compile "org.slf4j:slf4j-simple:1.7.7"
compile "org.jetbrains.kotlin:kotlin-reflect"
compile "com.github.tomakehurst:wiremock-standalone:2.17.0"
compile "junit:junit:4.12"
compile "net.serenity-bdd:serenity-core:2.0.70"
compile "net.serenity-bdd:serenity-junit:2.0.70"
compile 'net.serenity-bdd:serenity-cucumber:1.9.45'
compile 'net.serenity-bdd:serenity-rest-assured:2.0.70'
compile "org.assertj:assertj-core:3.8.0"
compile 'io.github.bonigarcia:webdrivermanager:3.6.2'
compile 'io.appium:java-client:3.3.0'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
test {
testLogging.showStandardStreams = true
/* Assign all env variables passed to gradle as system properties.
Serenity only picks up on properties (not env variables) */
systemProperties System.getProperties()
afterTest { desc, result ->
if ("FAILURE" == result.resultType as String) {
failures.withWriterAppend {
it.write("${desc.className}.${desc.name}\n")
}
}
}}