forked from pivotal-bank/cf-SpringBootTrader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
57 lines (45 loc) · 1.36 KB
/
Copy pathbuild.gradle
File metadata and controls
57 lines (45 loc) · 1.36 KB
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
buildscript {
ext {
springBootVersion = '1.3.0.RELEASE'
springCloudStarterParentTrain = 'Brixton.M3'
scsVersion = '1.0.0.RELEASE'
junitVersion = '4.12'
thymeleafExtras = '2.1.2.RELEASE'
dependencyPlugin = '0.5.3.RELEASE'
}
repositories {
mavenCentral()
maven { url "http://repo.spring.io/milestone" }
maven { url "http://repo.spring.io/snapshot" }
maven { url "https://plugins.gradle.org/m2/" }
}
}
repositories {
mavenLocal()
mavenCentral()
}
apply plugin: 'jacoco'
apply plugin: 'java'
subprojects {
apply plugin: 'java'
apply plugin: 'jacoco'
}
//create a joint code coverage report from subprojects
task codeCoverageReport(type: JacocoReport) {
// Gather execution data from all subprojects
// (change this if you e.g. want to calculate unit test/integration test coverage separately)
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
// Add all relevant sourcesets from the subprojects
subprojects.each { sourceSets it.sourceSets.main }
reports {
csv.enabled false
html.destination file("${buildDir}/jacocoHtml")
xml.enabled false
}
jacoco { toolVersion = "0.7.5+" // reportsDir = file("$buildDir/customJacocoReportDir")
}
}
// always run the tests before generating the report
codeCoverageReport.dependsOn { subprojects*.test }
//run full report after test
test.finalizedBy(codeCoverageReport)