mirror of https://github.com/grpc/grpc-java.git
45 lines
1.2 KiB
Groovy
45 lines
1.2 KiB
Groovy
plugins {
|
|
id "java"
|
|
id "maven-publish"
|
|
|
|
id "me.champeau.gradle.japicmp"
|
|
}
|
|
|
|
description = "gRPC: Testing"
|
|
|
|
evaluationDependsOn(project(':grpc-core').path)
|
|
|
|
dependencies {
|
|
compile project(':grpc-core'),
|
|
project(':grpc-stub'),
|
|
libraries.junit
|
|
|
|
compile (libraries.opencensus_api) {
|
|
// prefer 3.0.2 from libraries instead of 3.0.1
|
|
exclude group: 'com.google.code.findbugs', module: 'jsr305'
|
|
// prefer 20.0 from libraries instead of 19.0
|
|
exclude group: 'com.google.guava', module: 'guava'
|
|
// we'll always be more up-to-date
|
|
exclude group: 'io.grpc', module: 'grpc-context'
|
|
}
|
|
|
|
testCompile (libraries.mockito) {
|
|
// prefer our own versions instead of mockito's dependency
|
|
exclude group: 'org.hamcrest', module: 'hamcrest-core'
|
|
}
|
|
|
|
testCompile project(':grpc-testing-proto'),
|
|
project(':grpc-core').sourceSets.test.output
|
|
}
|
|
|
|
javadoc { exclude 'io/grpc/internal/**' }
|
|
|
|
jacocoTestReport {
|
|
classDirectories.from = sourceSets.main.output.collect {
|
|
fileTree(dir: it,
|
|
exclude: [
|
|
'**/io/grpc/internal/testing/**',
|
|
])
|
|
}
|
|
}
|