-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
98 lines (84 loc) · 2.55 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
86
87
88
89
90
91
92
93
94
95
96
97
98
apply plugin: 'java'
defaultTasks 'clean', 'check'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
configurations.configureEach {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
repositories {
mavenCentral()
mavenLocal()
maven {
url uri('https://oss.sonatype.org/content/repositories/snapshots/')
mavenContent {
snapshotsOnly()
}
}
}
compileJava {
options.debugOptions.debugLevel = "source,lines,vars"
options.fork = true
options.compilerArgs << '-parameters'
}
sourceSets {
main {
java {srcDir "app"}
resources {srcDirs "conf", "app"}
}
test {
java {srcDir "test"}
resources {srcDir "test"}
}
}
buildscript {
ext.replay_version = '2.3.1'
ext.httpclient_version = '4.5.14'
ext.junitVersion = '5.12.0'
}
dependencies {
implementation("com.codeborne.replay:framework:${replay_version}")
implementation("com.codeborne.replay:fastergt:${replay_version}")
implementation("com.codeborne.replay:guice:${replay_version}")
implementation("com.codeborne.replay:pdf:${replay_version}")
implementation("com.codeborne.replay:javanet:${replay_version}")
implementation("org.apache.httpcomponents:httpclient:${httpclient_version}")
implementation("org.apache.httpcomponents:fluent-hc:${httpclient_version}")
testImplementation('org.assertj:assertj-core:3.27.3')
testImplementation('com.codeborne:selenide:7.7.3')
testImplementation platform("org.junit:junit-bom:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation "org.junit.platform:junit-platform-engine"
testImplementation "org.junit.platform:junit-platform-launcher"
testImplementation('org.mockito:mockito-core:5.16.0')
testImplementation('org.subethamail:subethasmtp:3.1.7') {transitive = false}
testImplementation('org.wiremock:wiremock:3.12.1') {
exclude group: 'org.eclipse.jetty', module: 'jetty-client'
}
testImplementation('com.fasterxml.jackson.core:jackson-databind:2.18.3')
testImplementation('com.codeborne:pdf-test:1.9.2')
}
test {
exclude 'ui/**'
}
tasks.register('uitest', Test) {
include 'ui/**/*'
systemProperties['selenide.headless'] = 'true'
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
systemProperties['file.encoding'] = "UTF-8"
systemProperties['user.country'] = 'TR'
systemProperties['user.language'] = 'tr'
testLogging {
events "passed", "skipped", "failed"
showExceptions true
exceptionFormat 'full'
}
outputs.upToDateWhen { false }
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}