testing: remove opencensus dependency from grpc-testing (#8833)

`io.grpc.internal.testing.StatsTestUtils` in `grpc-testing` is only used internally by `grpc-interop-testing` and unit tests. The opencensus dependency does not need to be exposed to `grpc-interop-testing` maven artifact.
This commit is contained in:
ZHANG Dapeng 2022-01-14 10:13:43 -08:00 committed by GitHub
parent 39cc44e38c
commit 9ee0ac208b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,8 @@ dependencies {
api project(':grpc-core'), api project(':grpc-core'),
project(':grpc-stub'), project(':grpc-stub'),
libraries.junit libraries.junit
implementation libraries.opencensus_api // Only io.grpc.internal.testing.StatsTestUtils depends on opencensus_api, for internal use.
compileOnly libraries.opencensus_api
runtimeOnly project(":grpc-context") // Pull in newer version than census-api runtimeOnly project(":grpc-context") // Pull in newer version than census-api
testImplementation (libraries.mockito) { testImplementation (libraries.mockito) {