From 78aea02bcbe0491731869ed1b5b5d04040f5ebb5 Mon Sep 17 00:00:00 2001 From: Paul Ambrose Date: Thu, 28 Feb 2019 15:47:44 -0800 Subject: [PATCH] Update deprecated calls RpcViews.registerAllViews() was replaced with RpcViews.registerAllGrpcViews() Use 'implementation' instead of 'compile' in build.gradle --- content/guides/gRPC/Java.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/content/guides/gRPC/Java.md b/content/guides/gRPC/Java.md index 17a6969e..2895f762 100644 --- a/content/guides/gRPC/Java.md +++ b/content/guides/gRPC/Java.md @@ -60,15 +60,15 @@ As specified at [grpc-java on Github](https://github.com/grpc/grpc-java#download {{}} {{}} -compile 'io.grpc:grpc-netty-shaded:1.16.1' -compile 'io.grpc:grpc-protobuf:1.16.1' -compile 'io.grpc:grpc-stub:1.16.1' +implementation 'io.grpc:grpc-netty-shaded:1.16.1' +implementation 'io.grpc:grpc-protobuf:1.16.1' +implementation 'io.grpc:grpc-stub:1.16.1' {{}} {{}} -compile 'io.grpc:grpc-okhttp:1.16.1' -compile 'io.grpc:grpc-protobuf-lite:1.16.1' -compile 'io.grpc:grpc-stub:1.16.1' +implementation 'io.grpc:grpc-okhttp:1.16.1' +implementation 'io.grpc:grpc-protobuf-lite:1.16.1' +implementation 'io.grpc:grpc-stub:1.16.1' {{}} {{}} @@ -451,7 +451,7 @@ public class TutorialServer { } // Register all the gRPC views and enable stats - RpcViews.registerAllViews(); + RpcViews.registerAllGrpcViews(); // Create the Stackdriver stats exporter StackdriverStatsExporter.createAndRegister( @@ -551,7 +551,7 @@ public class TutorialServer { } // Register all the gRPC views and enable stats - RpcViews.registerAllViews(); + RpcViews.registerAllGrpcViews(); // Create the Stackdriver stats exporter StackdriverStatsExporter.createAndRegister( @@ -849,7 +849,7 @@ public class TutorialClient { } // Register all the gRPC views and enable stats - RpcViews.registerAllViews(); + RpcViews.registerAllGrpcViews(); // Create the Stackdriver stats exporter StackdriverStatsExporter.createAndRegister( @@ -935,7 +935,7 @@ public class TutorialClient { } // Register all the gRPC views and enable stats - RpcViews.registerAllViews(); + RpcViews.registerAllGrpcViews(); // Create the Stackdriver stats exporter StackdriverStatsExporter.createAndRegister(