forked from ElectroNickP/allure-example-ae
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
74 lines (57 loc) · 1.65 KB
/
build.gradle.kts
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
import io.qameta.allure.gradle.AllureExtension
import org.gradle.api.tasks.testing.logging.TestLogEvent
buildscript {
repositories {
maven("https://plugins.gradle.org/m2/")
}
dependencies {
classpath("io.qameta.allure:allure-gradle:2.8.1")
}
}
tasks.existing(Wrapper::class) {
gradleVersion = "5.1.1"
distributionType = Wrapper.DistributionType.ALL
}
group = "io.eroshenkoam"
version = version
plugins {
java
maven
}
apply(plugin = "io.qameta.allure")
configure<AllureExtension> {
autoconfigure = true
aspectjweaver = true
version = "2.16.0"
useJUnit5 {
version = "2.16.0"
}
}
tasks.withType(JavaCompile::class) {
sourceCompatibility = "${JavaVersion.VERSION_1_8}"
targetCompatibility = "${JavaVersion.VERSION_1_8}"
options.encoding = "UTF-8"
}
tasks.withType(Test::class) {
ignoreFailures = true
useJUnitPlatform {
}
systemProperty("junit.jupiter.execution.parallel.enabled", "true")
systemProperty("junit.jupiter.execution.parallel.config.strategy", "dynamic")
systemProperty("junit.jupiter.extensions.autodetection.enabled", "true")
testLogging {
setEvents(listOf(TestLogEvent.FAILED, TestLogEvent.SKIPPED, TestLogEvent.PASSED))
}
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
compile("commons-io:commons-io:2.6")
compile("io.qameta.allure:allure-java-commons:2.16.0")
compile("org.junit.jupiter:junit-jupiter-api:5.7.0")
compile("org.junit.jupiter:junit-jupiter-engine:5.7.0")
compile("org.junit.jupiter:junit-jupiter-params:5.7.0")
testCompile("io.qameta.allure:allure-junit-platform:2.16.0")
}