2015-08-08 09:02:31 +08:00
|
|
|
apply plugin: 'com.github.kt3k.coveralls'
|
|
|
|
|
2015-01-28 02:25:39 +08:00
|
|
|
description = "gRPC: All"
|
2014-12-16 01:58:05 +08:00
|
|
|
|
2015-08-08 09:02:31 +08:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2018-06-12 09:35:18 +08:00
|
|
|
maven { // The google mirror is less flaky than mavenCentral()
|
|
|
|
url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
2015-08-08 09:02:31 +08:00
|
|
|
}
|
2018-06-12 09:35:18 +08:00
|
|
|
dependencies { classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.1' }
|
2015-08-08 09:02:31 +08:00
|
|
|
}
|
|
|
|
|
2015-08-08 07:22:46 +08:00
|
|
|
def subprojects = [
|
2018-06-12 09:35:18 +08:00
|
|
|
project(':grpc-auth'),
|
|
|
|
project(':grpc-core'),
|
|
|
|
project(':grpc-context'),
|
|
|
|
project(':grpc-netty'),
|
|
|
|
project(':grpc-okhttp'),
|
|
|
|
project(':grpc-protobuf'),
|
|
|
|
project(':grpc-protobuf-lite'),
|
|
|
|
project(':grpc-protobuf-nano'),
|
|
|
|
project(':grpc-stub'),
|
|
|
|
project(':grpc-testing'),
|
2015-08-08 07:22:46 +08:00
|
|
|
]
|
|
|
|
|
2015-05-06 01:28:38 +08:00
|
|
|
for (subproject in rootProject.subprojects) {
|
|
|
|
if (subproject == project) {
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
evaluationDependsOn(subproject.path)
|
|
|
|
}
|
|
|
|
|
2014-12-16 01:58:05 +08:00
|
|
|
dependencies {
|
2017-06-30 00:52:54 +08:00
|
|
|
compile subprojects.minus(project(':grpc-protobuf-lite'))
|
2014-12-16 01:58:05 +08:00
|
|
|
}
|
|
|
|
|
2015-05-06 01:28:38 +08:00
|
|
|
javadoc {
|
2015-08-08 07:22:46 +08:00
|
|
|
classpath = files(subprojects.collect { subproject ->
|
2015-05-06 01:28:38 +08:00
|
|
|
subproject.javadoc.classpath
|
|
|
|
})
|
2015-08-08 07:22:46 +08:00
|
|
|
for (subproject in subprojects) {
|
2015-05-06 01:28:38 +08:00
|
|
|
if (subproject == project) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
source subproject.javadoc.source
|
|
|
|
options.links subproject.javadoc.options.links.toArray(new String[0])
|
|
|
|
}
|
|
|
|
}
|
2015-05-06 03:29:26 +08:00
|
|
|
|
|
|
|
task jacocoMerge(type: JacocoMerge) {
|
2016-02-14 06:43:38 +08:00
|
|
|
dependsOn(subprojects.jacocoTestReport.dependsOn)
|
|
|
|
mustRunAfter(subprojects.jacocoTestReport.mustRunAfter)
|
2015-05-06 03:29:26 +08:00
|
|
|
destinationFile = file("${buildDir}/jacoco/test.exec")
|
2015-08-08 07:22:46 +08:00
|
|
|
executionData = files(subprojects.jacocoTestReport.executionData)
|
2018-06-12 09:35:18 +08:00
|
|
|
.plus(project(':grpc-interop-testing').jacocoTestReport.executionData)
|
|
|
|
.filter { f -> f.exists() }
|
2015-05-06 03:29:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
jacocoTestReport {
|
|
|
|
dependsOn(jacocoMerge)
|
2015-08-08 09:02:31 +08:00
|
|
|
reports {
|
|
|
|
xml.enabled = true
|
|
|
|
html.enabled = true
|
|
|
|
}
|
2015-05-06 03:29:26 +08:00
|
|
|
|
2015-08-08 07:22:46 +08:00
|
|
|
additionalSourceDirs = files(subprojects.sourceSets.main.allSource.srcDirs)
|
|
|
|
sourceDirectories = files(subprojects.sourceSets.main.allSource.srcDirs)
|
|
|
|
classDirectories = files(subprojects.sourceSets.main.output)
|
2015-09-22 03:54:06 +08:00
|
|
|
classDirectories = files(classDirectories.files.collect {
|
|
|
|
fileTree(dir: it,
|
2018-06-12 09:35:18 +08:00
|
|
|
exclude: [
|
2018-11-22 07:03:13 +08:00
|
|
|
'**/io/grpc/internal/testing/**',
|
|
|
|
'**/io/grpc/okhttp/internal/**',
|
2018-06-12 09:35:18 +08:00
|
|
|
])
|
2015-09-22 03:54:06 +08:00
|
|
|
})
|
2015-05-06 03:29:26 +08:00
|
|
|
}
|
2015-08-08 09:02:31 +08:00
|
|
|
|
|
|
|
coveralls {
|
|
|
|
sourceDirs = subprojects.sourceSets.main.allSource.srcDirs.flatten()
|
|
|
|
}
|
|
|
|
|
2018-06-12 09:35:18 +08:00
|
|
|
tasks.coveralls { dependsOn(jacocoTestReport) }
|