-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
executable file
·101 lines (87 loc) · 2.99 KB
/
Copy pathbuild.gradle
File metadata and controls
executable file
·101 lines (87 loc) · 2.99 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/*
* This file was generated by the Gradle 'init' task.
*
* This project uses @Incubating APIs which are subject to change.
*/
plugins {
id 'java-library'
id 'maven-publish'
id 'io.qameta.allure' version '2.11.2'
}
allure {
version = "2.13.1"
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
repositories {
mavenLocal()
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}
// Define the version of AspectJ
def aspectJVersion = "1.9.20.1"
// Define the version of Allure you want to use via the allureVersion property
def allureVersion = "2.29.0"
dependencies {
// Selenium WebDriver
implementation 'org.seleniumhq.selenium:selenium-java:4.16.1'
// WebDriverManager for automatic driver management
implementation 'io.github.bonigarcia:webdrivermanager:5.9.2'
// TestNG for test execution (optional, you can use JUnit if preferred)
testImplementation 'org.testng:testng:7.8.0'
// Assertions library (optional, but recommended)
implementation 'org.assertj:assertj-core:3.24.2'
// https://mvnrepository.com/artifact/ru.stqa.selenium/webdriver-factory
implementation 'ru.stqa.selenium:webdriver-factory:4.4'
// https://mvnrepository.com/artifact/com.opencsv/opencsv
implementation 'com.opencsv:opencsv:3.7'
// https://mvnrepository.com/artifact/io.qameta.allure/allure-testng
// Import allure-bom to ensure correct versions of all the dependencies are used
testImplementation platform("io.qameta.allure:allure-bom:$allureVersion")
// Add necessary Allure dependencies to dependencies section
testImplementation "io.qameta.allure:allure-testng:$allureVersion"
implementation "io.qameta.allure:allure-testng:$allureVersion"
testImplementation "io.qameta.allure:allure-testng:$allureVersion"
implementation 'org.apache.logging.log4j:log4j-api:2.23.1'
testImplementation 'org.apache.logging.log4j:log4j-api:2.23.1'
// Log4j2 Core
implementation 'org.apache.logging.log4j:log4j-core:2.23.1'
testImplementation 'org.apache.logging.log4j:log4j-core:2.23.1'
// https://mvnrepository.com/artifact/org.aspectj/aspectjweaver
testImplementation "org.aspectj:aspectjweaver:$aspectJVersion"
implementation "org.aspectj:aspectjweaver:$aspectJVersion"
}
group = 'org.example'
version = '1.0-SNAPSHOT'
description = 'Java UI FrameWork'
java.sourceCompatibility = JavaVersion.VERSION_17
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(Javadoc) {
options.encoding = 'UTF-8'
}
tasks.named('test') {
useTestNG()
}
test {
useTestNG() {
useDefaultListeners = true
//suites 'src/test/resources/all-tests.xml'
}
testLogging {
events "PASSED", "FAILED", "SKIPPED"
exceptionFormat 'full'
}
systemProperty "allure.results.directory", "build/allure-results"
}