mirror of https://github.com/grpc/grpc-java.git
all: Move jacocoTestReport exclusions to individual projects
The sourceSets.main.output.collect should probably be improved at some point to improve loading performance, but this is technically better than what we had before so let's call it a win and move on.
This commit is contained in:
parent
ffb70cd433
commit
186cfebcba
|
|
@ -60,15 +60,11 @@ jacocoTestReport {
|
||||||
html.enabled = true
|
html.enabled = true
|
||||||
}
|
}
|
||||||
|
|
||||||
additionalSourceDirs.from(files(subprojects.sourceSets.main.allSource.srcDirs))
|
subprojects.each { subproject ->
|
||||||
sourceDirectories.from(files(subprojects.sourceSets.main.allSource.srcDirs))
|
additionalSourceDirs.from(subproject.jacocoTestReport.additionalSourceDirs)
|
||||||
classDirectories.from(files(subprojects.sourceSets.main.output).collect {
|
sourceDirectories.from(subproject.jacocoTestReport.sourceDirectories)
|
||||||
fileTree(dir: it,
|
classDirectories.from(subproject.jacocoTestReport.classDirectories)
|
||||||
exclude: [
|
}
|
||||||
'**/io/grpc/internal/testing/**',
|
|
||||||
'**/io/grpc/okhttp/internal/**',
|
|
||||||
])
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
coveralls {
|
coveralls {
|
||||||
|
|
|
||||||
|
|
@ -36,3 +36,12 @@ checkstyleMain.exclude '**/io/grpc/okhttp/internal/**'
|
||||||
|
|
||||||
javadoc.exclude 'io/grpc/okhttp/internal/**'
|
javadoc.exclude 'io/grpc/okhttp/internal/**'
|
||||||
javadoc.options.links 'http://square.github.io/okhttp/2.x/okhttp/'
|
javadoc.options.links 'http://square.github.io/okhttp/2.x/okhttp/'
|
||||||
|
|
||||||
|
jacocoTestReport {
|
||||||
|
classDirectories.from = sourceSets.main.output.collect {
|
||||||
|
fileTree(dir: it,
|
||||||
|
exclude: [
|
||||||
|
'**/io/grpc/okhttp/internal/**',
|
||||||
|
])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,3 +33,12 @@ dependencies {
|
||||||
}
|
}
|
||||||
|
|
||||||
javadoc { exclude 'io/grpc/internal/**' }
|
javadoc { exclude 'io/grpc/internal/**' }
|
||||||
|
|
||||||
|
jacocoTestReport {
|
||||||
|
classDirectories.from = sourceSets.main.output.collect {
|
||||||
|
fileTree(dir: it,
|
||||||
|
exclude: [
|
||||||
|
'**/io/grpc/internal/testing/**',
|
||||||
|
])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue