forked from aNNiMON/Lightweight-Stream-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
55 lines (46 loc) · 1.44 KB
/
build.gradle
File metadata and controls
55 lines (46 loc) · 1.44 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
// Plugins
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'net.saliman:gradle-cobertura-plugin:2.2.6'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.6.3'
}
}
apply plugin: 'com.github.kt3k.coveralls'
apply plugin: 'net.saliman.cobertura'
allprojects {
repositories {
mavenCentral()
}
}
subprojects {
apply plugin: 'net.saliman.cobertura'
cobertura {
coverageFormats = ['html', 'xml']
}
}
cobertura {
coverageFormats = ['html', 'xml']
coverageExcludes = ['.*com\\.annimon\\.stream\\.Compat.*', '.*com\\.annimon\\.stream\\.test\\.hamcrest\\.CommonMatcher.*']
coverageReportDatafile = file("build/cobertura/cobertura.ser")
coverageReportDir = file("build/reports/coverage")
coverageSourceDirs = subprojects.sourceSets.main.allSource.srcDirs.flatten()
coverageMergeDatafiles = subprojects.collect { file("${it.buildDir}/cobertura/cobertura.ser") }
coverageDirs = subprojects.collect { file("${it.buildDir}/classes/main") }
}
coveralls {
coberturaReportPath = "${rootProject.buildDir}/reports/coverage/coverage.xml"
}
test.dependsOn(rootProject.subprojects.collect { ":${it.name}:cobertura" })
tasks.coveralls {
dependsOn coberturaReport
}
/*allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}*/