Skip to content

Commit af93691

Browse files
Bogdan Drutuejona86
authored andcommitted
Update opencensus to 0.11.0 and remove extra dependencies.
1 parent 0c21032 commit af93691

7 files changed

Lines changed: 18 additions & 29 deletions

File tree

build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ subprojects {
105105
protobufVersion = '3.5.1'
106106
protocVersion = '3.5.1-1'
107107
protobufNanoVersion = '3.0.0-alpha-5'
108+
opencensusVersion = '0.11.0'
108109

109110
configureProtoCompilation = {
110111
String generatedSourcePath = "${projectDir}/src/generated"
@@ -196,10 +197,10 @@ subprojects {
196197
google_auth_credentials: 'com.google.auth:google-auth-library-credentials:0.9.0',
197198
okhttp: 'com.squareup.okhttp:okhttp:2.5.0',
198199
okio: 'com.squareup.okio:okio:1.13.0',
199-
opencensus_api: 'io.opencensus:opencensus-api:0.10.0',
200-
opencensus_contrib_grpc_metrics: 'io.opencensus:opencensus-contrib-grpc-metrics:0.10.0',
201-
opencensus_impl: 'io.opencensus:opencensus-impl:0.10.0',
202-
opencensus_impl_lite: 'io.opencensus:opencensus-impl-lite:0.10.0',
200+
opencensus_api: "io.opencensus:opencensus-api:${opencensusVersion}",
201+
opencensus_contrib_grpc_metrics: "io.opencensus:opencensus-contrib-grpc-metrics:${opencensusVersion}",
202+
opencensus_impl: "io.opencensus:opencensus-impl:${opencensusVersion}",
203+
opencensus_impl_lite: "io.opencensus:opencensus-impl-lite:${opencensusVersion}",
203204
instrumentation_api: 'com.google.instrumentation:instrumentation-api:0.4.3',
204205
protobuf: "com.google.protobuf:protobuf-java:${protobufVersion}",
205206
protobuf_lite: "com.google.protobuf:protobuf-lite:3.0.1",

context/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ java_library(
88
"@com_google_code_findbugs_jsr305//jar",
99
"@com_google_errorprone_error_prone_annotations//jar",
1010
"@com_google_guava_guava//jar",
11-
"@com_google_instrumentation_instrumentation_api//jar",
1211
],
1312
)

core/BUILD.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ java_library(
1212
"@com_google_code_findbugs_jsr305//jar",
1313
"@com_google_errorprone_error_prone_annotations//jar",
1414
"@com_google_guava_guava//jar",
15-
"@com_google_instrumentation_instrumentation_api//jar",
1615
"@io_opencensus_opencensus_api//jar",
1716
],
1817
)
@@ -44,7 +43,6 @@ java_library(
4443
"@com_google_errorprone_error_prone_annotations//jar",
4544
"@com_google_code_gson_gson//jar",
4645
"@com_google_guava_guava//jar",
47-
"@com_google_instrumentation_instrumentation_api//jar",
4846
"@io_opencensus_opencensus_api//jar",
4947
"@io_opencensus_opencensus_contrib_grpc_metrics//jar",
5048
],

core/build.gradle

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,10 @@ dependencies {
66
libraries.guava,
77
libraries.errorprone,
88
libraries.jsr305
9-
compile (libraries.instrumentation_api) {
10-
// prefer 2.0.19 from libraries instead of 2.0.11
11-
exclude group: 'com.google.errorprone', module: 'error_prone_annotations'
12-
// we'll always be more up-to-date
13-
exclude group: 'io.grpc', module: 'grpc-context'
14-
}
159
compile (libraries.opencensus_api) {
1610
// prefer 3.0.0 from libraries instead of 3.0.1
1711
exclude group: 'com.google.code.findbugs', module: 'jsr305'
18-
// prefer 2.0.19 from libraries instead of 2.0.11
12+
// prefer 2.1.2 from libraries instead of 2.2.0
1913
exclude group: 'com.google.errorprone', module: 'error_prone_annotations'
2014
// we'll always be more up-to-date
2115
exclude group: 'io.grpc', module: 'grpc-context'
@@ -25,6 +19,8 @@ dependencies {
2519
exclude group: 'com.google.code.findbugs', module: 'jsr305'
2620
// we'll always be more up-to-date
2721
exclude group: 'io.grpc', module: 'grpc-context'
22+
// prefer 2.1.2 from libraries instead of 2.2.0
23+
exclude group: 'com.google.errorprone', module: 'error_prone_annotations'
2824
}
2925

3026
testCompile project(':grpc-context').sourceSets.test.output,

repositories.bzl

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ def grpc_java_repositories(
77
omit_com_google_code_gson=False,
88
omit_com_google_errorprone_error_prone_annotations=False,
99
omit_com_google_guava=False,
10-
omit_com_google_instrumentation_api=False,
1110
omit_com_google_protobuf=False,
1211
omit_com_google_protobuf_java=False,
1312
omit_com_google_protobuf_nano_protobuf_javanano=False,
@@ -41,8 +40,6 @@ def grpc_java_repositories(
4140
com_google_errorprone_error_prone_annotations()
4241
if not omit_com_google_guava:
4342
com_google_guava()
44-
if not omit_com_google_instrumentation_api:
45-
com_google_instrumentation_api()
4643
if not omit_com_google_protobuf:
4744
com_google_protobuf()
4845
if omit_com_google_protobuf_java:
@@ -135,13 +132,6 @@ def com_google_guava():
135132
sha1 = "6ce200f6b23222af3d8abb6b6459e6c44f4bb0e9",
136133
)
137134

138-
def com_google_instrumentation_api():
139-
native.maven_jar(
140-
name = "com_google_instrumentation_instrumentation_api",
141-
artifact = "com.google.instrumentation:instrumentation-api:0.4.3",
142-
sha1 = "41614af3429573dc02645d541638929d877945a2",
143-
)
144-
145135
def com_google_protobuf():
146136
# proto_library rules implicitly depend on @com_google_protobuf//:protoc,
147137
# which is the proto-compiler.
@@ -261,15 +251,15 @@ def io_netty_tcnative_boringssl_static():
261251
def io_opencensus_api():
262252
native.maven_jar(
263253
name = "io_opencensus_opencensus_api",
264-
artifact = "io.opencensus:opencensus-api:0.10.0",
265-
sha1 = "46bcf07e0bd835022ccd531d99c3eb813382d4d8",
254+
artifact = "io.opencensus:opencensus-api:0.11.0",
255+
sha1 = "c1ff1f0d737a689d900a3e2113ddc29847188c64",
266256
)
267257

268258
def io_opencensus_grpc_metrics():
269259
native.maven_jar(
270260
name = "io_opencensus_opencensus_contrib_grpc_metrics",
271-
artifact = "io.opencensus:opencensus-contrib-grpc-metrics:0.10.0",
272-
sha1 = "e47f918dc577b6316f57a884c500b13a98d3c11b",
261+
artifact = "io.opencensus:opencensus-contrib-grpc-metrics:0.11.0",
262+
sha1 = "d57b877f1a28a613452d45e35c7faae5af585258",
273263
)
274264

275265
def junit_junit():

services/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ description = "gRPC: Services"
1313
dependencies {
1414
compile project(':grpc-protobuf'),
1515
project(':grpc-stub')
16+
compile (libraries.instrumentation_api) {
17+
// prefer 2.0.19 from libraries instead of 2.0.11
18+
exclude group: 'com.google.errorprone', module: 'error_prone_annotations'
19+
// we'll always be more up-to-date
20+
exclude group: 'io.grpc', module: 'grpc-context'
21+
}
1622
testCompile project(':grpc-testing'),
1723
libraries.netty_epoll // for DomainSocketAddress
1824
signature "org.codehaus.mojo.signature:java16:1.1@signature"

testing/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,5 @@ java_library(
3131
deps = [
3232
"//core",
3333
"//core:internal",
34-
"@com_google_instrumentation_instrumentation_api//jar",
3534
],
3635
)

0 commit comments

Comments
 (0)