From 9ee0ac208b19c6d02e5f2d40933a3afba7d02579 Mon Sep 17 00:00:00 2001 From: ZHANG Dapeng Date: Fri, 14 Jan 2022 10:13:43 -0800 Subject: [PATCH] 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. --- testing/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/build.gradle b/testing/build.gradle index a0f3181991..0879eca502 100644 --- a/testing/build.gradle +++ b/testing/build.gradle @@ -13,7 +13,8 @@ dependencies { api project(':grpc-core'), project(':grpc-stub'), 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 testImplementation (libraries.mockito) {