-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
53 lines (47 loc) · 1.29 KB
/
build.gradle
File metadata and controls
53 lines (47 loc) · 1.29 KB
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
plugins {
id 'java'
id 'idea'
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
group = 'org.example'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.1'
testImplementation 'org.hamcrest:hamcrest:3.0'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
test {
useJUnitPlatform {
if (project.hasProperty('includeTags')) {
def tags = project.property('includeTags')
.toString()
.split(',')
.collect { it.trim() }
includeTags tags as String[]
}
if (project.hasProperty('excludeTags')) {
def tags = project.property('excludeTags')
.toString()
.split(',')
.collect { it.trim() }
excludeTags tags as String[]
}
}
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
showStandardStreams = true
exceptionFormat "full"
showCauses = true
showExceptions = true
showStackTraces = true
}
}