-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
85 lines (73 loc) · 2.29 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
79
80
81
82
83
84
85
plugins {
id 'java'
id 'io.qameta.allure' version '2.9.6'
}
group = 'ru.egor.qa.apitest'
version = '1.0-SNAPSHOT'
apply plugin: 'io.qameta.allure'
def junitJupiterVersion = '5.9.2',
restAssuredVersion = '5.3.0',
cucumberJavaVersion = '7.11.0',
cucumberJunitVersion = '7.11.0',
allureVersion = '2.20.1',
jacksonVersion = '2.14.1',
assertjVersion = "3.23.1",
aspectjVersion = "1.9.5",
configVersion = "1.4.2"
repositories {
jcenter()
mavenCentral()
}
allure {
report {
version.set(allureVersion)
}
adapter {
aspectjWeaver.set(true)
frameworks {
junit5 {
adapterVersion.set(allureVersion)
}
}
}
}
compileJava {
options.encoding = 'UTF-8'
}
compileTestJava {
options.encoding = 'UTF-8'
}
dependencies {
implementation(
"io.qameta.allure:allure-cucumber7-jvm:$allureVersion",
"io.cucumber:cucumber-java:${cucumberJavaVersion}",
"io.qameta.allure:allure-java-commons:${allureVersion}",
"io.qameta.allure:allure-commandline:${allureVersion}",
"io.qameta.allure:allure-rest-assured:${allureVersion}",
"com.typesafe:config:${configVersion}",
'org.jetbrains:annotations:24.0.1',
'org.projectlombok:lombok:1.18.24'
)
testImplementation(
"org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}",
"org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}",
"io.rest-assured:rest-assured:${restAssuredVersion}",
"io.cucumber:cucumber-java:$cucumberJavaVersion",
"io.cucumber:cucumber-core:$cucumberJavaVersion",
"io.cucumber:cucumber-junit:${cucumberJunitVersion}",
"com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}",
"org.assertj:assertj-core:$assertjVersion",
"org.aspectj:aspectjweaver:$aspectjVersion",
"io.qameta.allure:allure-junit5:${allureVersion}",
"io.qameta.allure:allure-assertj:${allureVersion}",
"io.qameta.allure:allure-rest-assured:${allureVersion}",
'com.opencsv:opencsv:5.6',
'org.apache.poi:poi:3.9'
)
}
tasks.withType(Test) {
useJUnitPlatform()
}
test {
useJUnitPlatform()
}