-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
100 lines (86 loc) · 2.66 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
99
100
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.11.3'
}
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.26.3')
testImplementation('com.codeborne:selenide:7.5.1')
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
testImplementation('org.mockito:mockito-core:5.14.2')
testImplementation('org.subethamail:subethasmtp:3.1.7') {transitive = false}
testImplementation('com.github.tomakehurst:wiremock:3.0.1') {
exclude group: 'org.eclipse.jetty', module: 'jetty-client'
}
testImplementation('com.fasterxml.jackson.core:jackson-databind:2.18.1')
testImplementation('com.codeborne:pdf-test:1.9.1')
constraints {
testImplementation("com.jayway.jsonpath:json-path:2.9.0") {because 'used by wiremock'}
testImplementation("org.eclipse.jetty:jetty-bom:11.0.22") {because 'used by wiremock'}
}
}
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'
}