-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
65 lines (50 loc) · 1.53 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
plugins {
id "java"
id "org.springframework.boot" version "2.2.2.RELEASE"
id "io.spring.dependency-management" version "1.0.8.RELEASE"
id "com.adarshr.test-logger" version "2.0.0"
id "jacoco"
}
group = "com.fleboulch"
description = "treasure-map"
version = "1.0-SNAPSHOT"
sourceCompatibility = 14
targetCompatibility = 14
repositories {
mavenCentral()
}
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 {
// csv writer
compile "com.opencsv:opencsv:5.0"
// SB dependencies
implementation "org.springframework.boot:spring-boot-starter-web"
// 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.springframework.boot:spring-boot-starter-test"
}