-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
49 lines (42 loc) · 1.61 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
plugins {
id 'java'
}
group 'org.example'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
def JUNIT5_API_VERSION = '5.3.0'
def JUNIT5_PLATFORM_VERSION = '1.3.0'
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
afterSuite { desc, result ->
if (!desc.parent) {
def output = " Result: ${result.resultType} " +
"(${result.testCount} Tests, " +
"${result.successfulTestCount} Successes, " +
"${result.failedTestCount} Failures, " +
"${result.skippedTestCount} Skipped) "
println('\n' + ('-' * output.length()) + '\n' + output + '\n' + ('-' * output.length()))
}
}
}
}
dependencies {
compile 'com.google.guava:guava:28.2-jre'
testCompile "org.junit.jupiter:junit-jupiter-api:${JUNIT5_API_VERSION}"
testCompile "org.junit.jupiter:junit-jupiter-engine:${JUNIT5_API_VERSION}"
testCompile "org.junit.jupiter:junit-jupiter-params:${JUNIT5_API_VERSION}"
testCompile "org.junit.platform:junit-platform-launcher:${JUNIT5_PLATFORM_VERSION}"
testCompile 'org.assertj:assertj-core:3.10.0'
testCompile 'org.mockito:mockito-junit-jupiter:2.17.0'
testCompile 'junit:junit:4.12'
testImplementation 'com.approvaltests:approvaltests:4.0.2'
compileOnly 'org.projectlombok:lombok:1.18.12'
annotationProcessor 'org.projectlombok:lombok:1.18.12'
testCompileOnly 'org.projectlombok:lombok:1.18.12'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.12'
}