-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
60 lines (48 loc) · 1.38 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
plugins {
id "java-library"
id "io.qameta.allure" version "2.12.0"
id "com.github.ben-manes.versions" version "0.51.0"
}
group "com.github.rosolko"
version "1.0.0"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
allure {
version = "2.29.0"
}
repositories {
mavenCentral()
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
options.compilerArgs.add('-parameters')
}
configurations {
agent {
canBeResolved = true
canBeConsumed = true
}
}
dependencies {
agent "org.aspectj:aspectjweaver:1.9.22.1"
implementation("com.squareup.retrofit2:converter-gson:2.11.0")
implementation("io.qameta.allure:allure-okhttp3:2.29.1")
testImplementation("com.codeborne:selenide:7.7.0")
testImplementation("org.junit.jupiter:junit-jupiter:5.11.4")
testImplementation("io.qameta.allure:allure-selenide:2.29.1")
testImplementation("io.undertow:undertow-core:2.3.18.Final")
testRuntimeOnly("io.qameta.allure:allure-junit5:2.29.1")
testRuntimeOnly("org.slf4j:slf4j-simple:2.0.16")
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
testLogging.showStandardStreams = true
maxParallelForks = (int) (Runtime.runtime.availableProcessors().intdiv(2) ?: 1)
jvmArgs = [ "-javaagent:${configurations.agent.singleFile}" ]
}
wrapper {
gradleVersion = "8.10.2"
}