-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
67 lines (51 loc) · 1.6 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
plugins {
id "java"
id "application"
id "com.adarshr.test-logger" version "2.0.0"
id "jacoco"
}
group = "com.fleboulch"
description = "bowling"
version = "1.0-SNAPSHOT"
sourceCompatibility = 14
targetCompatibility = 14
repositories {
mavenCentral()
}
mainClassName = "com.fleboulch.bowling.BowlingApplication"
test {
useJUnitPlatform()
exclude "**/*IntTest*"
jvmArgs '-Djunit.jupiter.displayname.generator.default=org.junit.jupiter.api.DisplayNameGenerator$ReplaceUnderscores'
}
task integrationTest(type: Test) {
useJUnitPlatform()
description = "Execute integration tests."
group = "verification"
include "**/*IntTest*"
}
testlogger {
theme = "mocha"
slowThreshold = 1000
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
xml.destination file("$buildDir/reports/jacoco/report.xml")
}
}
check.dependsOn integrationTest, jacocoTestReport
dependencies {
implementation "com.fasterxml.jackson.core:jackson-databind:2.10.3"
/* lombok */
compileOnly "org.projectlombok:lombok:${lombok_version}"
annotationProcessor "org.projectlombok:lombok:${lombok_version}"
// test dependencies
testImplementation "org.junit.jupiter:junit-jupiter-api:${junit_version}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junit_version}"
testImplementation "org.junit.jupiter:junit-jupiter-params:${junit_version}"
testImplementation "org.assertj:assertj-core:3.14.0"
testImplementation "org.mockito:mockito-core:1.10.19"
testImplementation "org.mockito:mockito-junit-jupiter:3.3.0"
}