-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathbuild.gradle
45 lines (38 loc) · 1.06 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
apply plugin: 'java'
defaultTasks 'clean', 'test'
sourceSets {
main {
java {srcDir 'src'}
resources {srcDir 'src'}
}
test {
java {srcDir 'test'}
resources {srcDir 'test'}
}
}
repositories{
mavenCentral()
}
dependencies {
testImplementation 'junit:junit:4.13.2'
testImplementation 'com.codeborne:selenide-junit4:7.7.1'
testRuntimeOnly 'org.slf4j:slf4j-simple:2.0.16'
}
[compileJava, compileTestJava]*.options.collect {options -> options.encoding = 'UTF-8'}
[compileJava, compileTestJava]*.options.collect {options -> options.debug = true}
[compileJava, compileTestJava]*.sourceCompatibility = 17
[compileJava, compileTestJava]*.targetCompatibility = 17
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
test {
systemProperties = [
'file.encoding': 'UTF-8',
'selenide.browser': 'firefox',
'gmail.username': System.getProperty('gmail.username', "enter-your-gmail-username"),
'gmail.password': System.getProperty('gmail.password', "enter-your-gmail-password")
]
testLogging.showStandardStreams = true
}