-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
42 lines (34 loc) · 955 Bytes
/
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
allprojects {
apply plugin: 'jacoco'
repositories { mavenCentral() }
}
subprojects {
apply plugin: 'groovy'
apply plugin: 'maven'
dependencies {
compile gradleApi()
compile localGroovy()
testCompile gradleTestKit()
testCompile 'junit:junit:4.12'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts { archives sourcesJar }
}
task codeCoverageReport(type: JacocoReport) {
dependsOn { subprojects*.test }
executionData fileTree(project.rootDir.absolutePath)
.include("**/build/jacoco/*.exec")
subprojects.each { sourceSets it.sourceSets.main }
reports {
html.enabled false
csv.enabled false
xml.enabled true
xml.destination "${buildDir}/reports/jacoco/report.xml"
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}