-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
48 lines (39 loc) · 1.16 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
plugins {
id "org.sonarqube" version "2.7"
id 'com.github.sherter.google-java-format' version '0.8'
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
id 'java'
}
repositories {
jcenter()
}
tasks.getByName('sonarqube') {
doFirst {
// lazy initialize the property to collect all coverage files
def jacocoFilesFromSubprojects = subprojects.findAll {it.plugins.hasPlugin('jacoco')}
.collect {it.tasks.withType(Test)}.flatten().collect {it.jacoco.destinationFile}
sonarqube.properties {
property "sonar.jacoco.reportPaths", jacocoFilesFromSubprojects.join(',')
}
}
}
subprojects {
group = 'net.ripper.todoapp'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
apply plugin: 'java'
apply plugin: "jacoco"
apply plugin: 'io.spring.dependency-management'
apply from: rootProject.file('gradle/install-git-hooks.gradle')
jacoco {
toolVersion = "0.8.5"
}
repositories {
jcenter()
}
dependencyManagement {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:2.1.9.RELEASE")
}
}
}