-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
77 lines (61 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
68
69
70
71
72
73
74
75
76
77
plugins {
id "checkstyle"
id "jacoco"
id "java"
id "pmd"
}
defaultTasks 'build'
jacoco {
toolVersion = '0.8.5'
}
allprojects {
apply plugin: 'checkstyle'
apply plugin: 'pmd'
repositories {
jcenter()
mavenCentral()
}
}
subprojects {
apply plugin: 'jacoco'
apply plugin: 'java'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
checkstyle {
ignoreFailures = true
toolVersion = '8.30'
}
dependencies {
constraints {
implementation 'org.assertj:assertj-core:3.16.1'
implementation 'org.mockito:mockito-core:3.3.3'
implementation 'org.yaml:snakeyaml:1.26'
}
implementation platform('org.junit:junit-bom:5.6.2')
implementation platform('org.springframework.boot:spring-boot-dependencies:2.2.7.RELEASE')
}
pmd {
consoleOutput = true
ignoreFailures = true
ruleSetFiles = files("${rootProject.projectDir}/config/pmd/ruleset.xml")
ruleSets = []
toolVersion = '6.21.0'
}
test {
useJUnitPlatform()
}
}
task codeCoverageReport(type: JacocoReport) {
dependsOn = subprojects.build
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
subprojects.each {
sourceSets it.sourceSets.main
}
reports {
xml.enabled = true
xml.destination file("${buildDir}/reports/jacoco/report.xml")
html.enabled = false
csv.enabled = false
}
}
rootProject.check.dependsOn codeCoverageReport