-
Notifications
You must be signed in to change notification settings - Fork 69
/
build.gradle
65 lines (50 loc) · 1.98 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
import com.github.jk1.license.render.TextReportRenderer
plugins {
id 'com.github.jk1.dependency-license-report' version '2.0'
id "org.cyclonedx.bom" version "1.5.0"
}
licenseReport {
outputDir = "$projectDir/build/licenses"
renderers = [new TextReportRenderer("../../THIRD-PARTY-LICENSES.txt")]
}
allprojects {
repositories {
mavenCentral()
maven {
name 'Nexus@NT'
url "https://repository.novatec-gmbh.de/content/repositories/3rd_party_libs/"
}
}
apply plugin: 'java'
apply plugin: 'jacoco'
if (!project.hasProperty('buildVersion') || project.getProperty('buildVersion').empty) {
ext.buildVersion = 'SNAPSHOT'
}
version = "$buildVersion"
}
cyclonedxBom {
// includeConfigs is the list of configuration names to include when generating the BOM (leave empty to include every configuration)
// includeConfigs += ["runtimeClasspath"]
// skipConfigs is a list of configuration names to exclude when generating the BOM
// skipConfigs += ["compileClasspath", "testCompileClasspath"]
}
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
}
}