forked from inspectIT/inspectit-ocelot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
53 lines (39 loc) · 1.45 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
import com.github.jk1.license.render.TextReportRenderer
plugins {
id 'com.github.jk1.dependency-license-report' version '2.0'
}
licenseReport {
outputDir = "$projectDir/build/licenses"
renderers = [new TextReportRenderer("../../THIRD-PARTY-LICENSES.txt")]
}
allprojects {
repositories {
mavenCentral()
}
apply plugin: 'java'
apply plugin: 'jacoco'
if (!project.hasProperty('buildVersion') || project.getProperty('buildVersion').empty) {
ext.buildVersion = 'SNAPSHOT'
}
version = "$buildVersion"
}
task codeCoverageReport(type: JacocoReport) {
group = 'Verification'
description = 'Generates a combined report from all subprojects'
executionData { fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec") }
dependsOn(':inspectit-ocelot-agent:systemTest')
dependsOn(':inspectit-ocelot-agent:test')
dependsOn(':inspectit-ocelot-bootstrap:test')
dependsOn(':inspectit-ocelot-config:test')
dependsOn(':inspectit-ocelot-core:test')
[project(':inspectit-ocelot-agent'), project(':inspectit-ocelot-bootstrap'), project(':inspectit-ocelot-config'), project(':inspectit-ocelot-core')].each {
sourceSets it.sourceSets.main
}
reports {
xml.enabled true
xml.destination file("${buildDir}/reports/jacoco/report.xml")
html.enabled true
html.destination file("${buildDir}/reports/jacoco/html")
csv.enabled false
}
}