-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathbuild.gradle
75 lines (63 loc) · 1.93 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
defaultTasks 'clean', 'test'
apply plugin: 'java'
sourceSets {
main {
java {srcDir 'src'}
resources {srcDir 'src'}
}
test {
java {srcDir 'test'}
resources {srcDir 'test'}
}
}
repositories{
mavenCentral()
}
[compileJava, compileTestJava]*.options.collect {options -> options.encoding = 'UTF-8'}
[compileJava, compileTestJava]*.options.collect {options -> options.debug = true}
sourceCompatibility = 17
targetCompatibility = 17
test {
include 'ee/era/hangman/**'
}
tasks.register('uitest_firefox', Test) {
systemProperties['selenide.browser'] = 'firefox'
}
tasks.register('uitest_edge', Test) {
systemProperties['selenide.browser'] = 'edge'
}
tasks.register('uitest_chrome', Test) {
systemProperties['selenide.browser'] = 'chrome'
}
tasks.withType(Test).configureEach {
systemProperties['file.encoding'] = 'UTF-8'
System.properties.stringPropertyNames()
.findAll { it.startsWith("selenide.") }
.forEach {
println " set ${it} to ${System.getProperty(it)}"
systemProperties[it] = System.getProperty(it)
}
testLogging.showStandardStreams = true
outputs.upToDateWhen { false }
}
dependencies {
implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2'
implementation('org.liquibase:liquibase-core:4.30.0') {
exclude(group: 'javax.xml.bind')
}
implementation 'com.google.guava:guava:33.4.0-jre'
runtimeOnly 'com.h2database:h2:2.3.232'
implementation 'c3p0:c3p0:0.9.1.2'
implementation 'org.slf4j:slf4j-api:2.0.16'
runtimeOnly 'org.slf4j:slf4j-log4j12:2.0.16'
testImplementation 'org.hamcrest:hamcrest-all:1.3'
testImplementation('junit:junit:4.13.2') {transitive = false}
testImplementation 'org.mockito:mockito-core:5.15.2'
testImplementation 'com.codeborne:selenide:7.7.0'
}
tasks.register('run', JavaExec) {
dependsOn 'compileJava'
mainClass = 'ee.era.hangman.Launcher'
classpath = sourceSets.main.runtimeClasspath
systemProperty 'file.encoding', 'UTF-8'
}