-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
71 lines (60 loc) · 1.94 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
66
67
68
69
70
71
plugins {
id("io.gitlab.arturbosch.detekt").version("1.0.0.RC9.2")
}
subprojects {
repositories {
jcenter()
maven { url "https://repo.spring.io/milestone" }
}
apply plugin: 'java'
}
repositories {
mavenCentral()
jcenter()
}
apply plugin: 'jacoco'
jacoco {
toolVersion = '0.8.2'
}
ext {
detectSources = file("${projectDir}").listFiles(new FilenameFilter() {
@Override
boolean accept(File dir, String name) {
new File(dir, name).isDirectory() && name.startsWith("acropolis-")
}
})
}
detekt {
toolVersion = "1.0.0.RC9.2"
input = layout.files(detectSources)
config = layout.files("detekt-config.yml")
reports {
xml {
destination = file("build/reports/failfast.xml")
}
html {
destination = file("build/reports/failfast.html")
}
}
}
task codeCoverageReport(type: JacocoReport) {
// These properties are available on projects with the java plugin, after they've been
// evaluated. Ignore that IntelliJ doesn't think they'll exist because the will be there
// for Kotlin sub-projects.
//noinspection GroovyAssignabilityCheck
additionalSourceDirs = files(subprojects.sourceSets.main.allSource.srcDirs)
//noinspection GroovyAssignabilityCheck
sourceDirectories = files(subprojects.sourceSets.main.allSource.srcDirs)
//noinspection GroovyAssignabilityCheck
classDirectories = files(subprojects.sourceSets.main.output)
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
// Can use this if all sub-projects have a jacocoReport task configured.
// executionData = files(subprojects.jacocoTestReport.executionData)
// dependsOn subprojects.jacocoTestReport
reports {
xml.enabled = true
xml.setDestination(new File("${buildDir}/reports/jacoco/report.xml"))
html.enabled = true
csv.enabled = false
}
}