From d9d23ba1f0c2e7e7a739af890b465132c1558a04 Mon Sep 17 00:00:00 2001 From: Marco Ziccardi Date: Wed, 2 Nov 2016 17:28:08 +0100 Subject: [PATCH 1/2] Reduce gRPC dependency footprint, get rid of duplicate classes --- google-cloud-core/pom.xml | 23 +++++++++++++++++++++++ google-cloud-errorreporting/pom.xml | 18 +++++++++++++++++- google-cloud-language/pom.xml | 18 +++++++++++++++++- google-cloud-logging/pom.xml | 18 +++++++++++++++++- google-cloud-monitoring/pom.xml | 18 +++++++++++++++++- google-cloud-pubsub/pom.xml | 18 +++++++++++++++++- google-cloud-speech/pom.xml | 18 +++++++++++++++++- google-cloud-trace/pom.xml | 18 +++++++++++++++++- google-cloud-vision/pom.xml | 18 +++++++++++++++++- 9 files changed, 159 insertions(+), 8 deletions(-) diff --git a/google-cloud-core/pom.xml b/google-cloud-core/pom.xml index a79ffb8ea963..230faf99dd38 100644 --- a/google-cloud-core/pom.xml +++ b/google-cloud-core/pom.xml @@ -103,20 +103,43 @@ protobuf-java 3.0.0 + + io.grpc + grpc-protobuf + 1.0.1 + com.google.api gax 0.0.21 + + + io.grpc + grpc-all + + com.google.api.grpc grpc-google-common-protos 0.1.0 + + + io.grpc + grpc-all + + com.google.api.grpc grpc-google-iam-v1 0.1.0 + + + io.grpc + grpc-all + + diff --git a/google-cloud-errorreporting/pom.xml b/google-cloud-errorreporting/pom.xml index 470c1c57c6a0..7005c63998b9 100644 --- a/google-cloud-errorreporting/pom.xml +++ b/google-cloud-errorreporting/pom.xml @@ -31,10 +31,26 @@ com.google.api.grpc grpc-google-devtools-clouderrorreporting-v1beta1 0.1.0 + + + io.grpc + grpc-all + + io.grpc - grpc-all + grpc-netty + 1.0.1 + + + io.grpc + grpc-stub + 1.0.1 + + + io.grpc + grpc-auth 1.0.1 diff --git a/google-cloud-language/pom.xml b/google-cloud-language/pom.xml index 10738dc99e36..b996759e66f3 100644 --- a/google-cloud-language/pom.xml +++ b/google-cloud-language/pom.xml @@ -31,10 +31,26 @@ com.google.api.grpc grpc-google-cloud-language-v1beta1 0.1.0 + + + io.grpc + grpc-all + + io.grpc - grpc-all + grpc-netty + 1.0.1 + + + io.grpc + grpc-stub + 1.0.1 + + + io.grpc + grpc-auth 1.0.1 diff --git a/google-cloud-logging/pom.xml b/google-cloud-logging/pom.xml index b7bbce828372..92940b37fca8 100644 --- a/google-cloud-logging/pom.xml +++ b/google-cloud-logging/pom.xml @@ -31,10 +31,26 @@ com.google.api.grpc grpc-google-logging-v2 0.1.1 + + + io.grpc + grpc-all + + io.grpc - grpc-all + grpc-netty + 1.0.1 + + + io.grpc + grpc-stub + 1.0.1 + + + io.grpc + grpc-auth 1.0.1 diff --git a/google-cloud-monitoring/pom.xml b/google-cloud-monitoring/pom.xml index 6bcc7eb29d12..393dd8fa2058 100644 --- a/google-cloud-monitoring/pom.xml +++ b/google-cloud-monitoring/pom.xml @@ -31,10 +31,26 @@ com.google.api.grpc grpc-google-monitoring-v3 0.1.0 + + + io.grpc + grpc-all + + io.grpc - grpc-all + grpc-netty + 1.0.1 + + + io.grpc + grpc-stub + 1.0.1 + + + io.grpc + grpc-auth 1.0.1 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index c9e1217a33a9..e71d88c537d3 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -31,10 +31,26 @@ com.google.api.grpc grpc-google-pubsub-v1 0.1.0 + + + io.grpc + grpc-all + + io.grpc - grpc-all + grpc-netty + 1.0.1 + + + io.grpc + grpc-stub + 1.0.1 + + + io.grpc + grpc-auth 1.0.1 diff --git a/google-cloud-speech/pom.xml b/google-cloud-speech/pom.xml index a5fa54030e1c..e8d954fa8f24 100644 --- a/google-cloud-speech/pom.xml +++ b/google-cloud-speech/pom.xml @@ -31,10 +31,26 @@ com.google.api.grpc grpc-google-cloud-speech-v1beta1 0.1.0 + + + io.grpc + grpc-all + + io.grpc - grpc-all + grpc-netty + 1.0.1 + + + io.grpc + grpc-stub + 1.0.1 + + + io.grpc + grpc-auth 1.0.1 diff --git a/google-cloud-trace/pom.xml b/google-cloud-trace/pom.xml index fa7d67c791fa..18b1f5dd59de 100644 --- a/google-cloud-trace/pom.xml +++ b/google-cloud-trace/pom.xml @@ -31,10 +31,26 @@ com.google.api.grpc grpc-google-devtools-cloudtrace-v1 0.1.0 + + + io.grpc + grpc-all + + io.grpc - grpc-all + grpc-netty + 1.0.1 + + + io.grpc + grpc-stub + 1.0.1 + + + io.grpc + grpc-auth 1.0.1 diff --git a/google-cloud-vision/pom.xml b/google-cloud-vision/pom.xml index b360a5e6a6ab..cd7858bc9f18 100644 --- a/google-cloud-vision/pom.xml +++ b/google-cloud-vision/pom.xml @@ -31,10 +31,26 @@ com.google.api.grpc grpc-google-cloud-vision-v1 0.1.0 + + + io.grpc + grpc-all + + io.grpc - grpc-all + grpc-netty + 1.0.1 + + + io.grpc + grpc-stub + 1.0.1 + + + io.grpc + grpc-auth 1.0.1 From 6be9e2ccecfd3fcad679fcd528930d76abb7c66a Mon Sep 17 00:00:00 2001 From: Marco Ziccardi Date: Thu, 3 Nov 2016 09:08:23 +0100 Subject: [PATCH 2/2] Wrap grpc version inside a pom.xml property --- google-cloud-core/pom.xml | 2 +- google-cloud-errorreporting/pom.xml | 6 +++--- google-cloud-language/pom.xml | 6 +++--- google-cloud-logging/pom.xml | 6 +++--- google-cloud-monitoring/pom.xml | 6 +++--- google-cloud-pubsub/pom.xml | 6 +++--- google-cloud-speech/pom.xml | 6 +++--- google-cloud-trace/pom.xml | 6 +++--- google-cloud-vision/pom.xml | 6 +++--- pom.xml | 1 + 10 files changed, 26 insertions(+), 25 deletions(-) diff --git a/google-cloud-core/pom.xml b/google-cloud-core/pom.xml index 230faf99dd38..ae3403cff343 100644 --- a/google-cloud-core/pom.xml +++ b/google-cloud-core/pom.xml @@ -106,7 +106,7 @@ io.grpc grpc-protobuf - 1.0.1 + ${grpc.version} com.google.api diff --git a/google-cloud-errorreporting/pom.xml b/google-cloud-errorreporting/pom.xml index 7005c63998b9..7d169bab1950 100644 --- a/google-cloud-errorreporting/pom.xml +++ b/google-cloud-errorreporting/pom.xml @@ -41,17 +41,17 @@ io.grpc grpc-netty - 1.0.1 + ${grpc.version} io.grpc grpc-stub - 1.0.1 + ${grpc.version} io.grpc grpc-auth - 1.0.1 + ${grpc.version} ${project.groupId} diff --git a/google-cloud-language/pom.xml b/google-cloud-language/pom.xml index b996759e66f3..28ce8ce503c6 100644 --- a/google-cloud-language/pom.xml +++ b/google-cloud-language/pom.xml @@ -41,17 +41,17 @@ io.grpc grpc-netty - 1.0.1 + ${grpc.version} io.grpc grpc-stub - 1.0.1 + ${grpc.version} io.grpc grpc-auth - 1.0.1 + ${grpc.version} ${project.groupId} diff --git a/google-cloud-logging/pom.xml b/google-cloud-logging/pom.xml index 92940b37fca8..9761fe7289e5 100644 --- a/google-cloud-logging/pom.xml +++ b/google-cloud-logging/pom.xml @@ -41,17 +41,17 @@ io.grpc grpc-netty - 1.0.1 + ${grpc.version} io.grpc grpc-stub - 1.0.1 + ${grpc.version} io.grpc grpc-auth - 1.0.1 + ${grpc.version} ${project.groupId} diff --git a/google-cloud-monitoring/pom.xml b/google-cloud-monitoring/pom.xml index 393dd8fa2058..5c6a6a518afb 100644 --- a/google-cloud-monitoring/pom.xml +++ b/google-cloud-monitoring/pom.xml @@ -41,17 +41,17 @@ io.grpc grpc-netty - 1.0.1 + ${grpc.version} io.grpc grpc-stub - 1.0.1 + ${grpc.version} io.grpc grpc-auth - 1.0.1 + ${grpc.version} ${project.groupId} diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index e71d88c537d3..2b5939a3daaf 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -41,17 +41,17 @@ io.grpc grpc-netty - 1.0.1 + ${grpc.version} io.grpc grpc-stub - 1.0.1 + ${grpc.version} io.grpc grpc-auth - 1.0.1 + ${grpc.version} ${project.groupId} diff --git a/google-cloud-speech/pom.xml b/google-cloud-speech/pom.xml index e8d954fa8f24..ee01766211d2 100644 --- a/google-cloud-speech/pom.xml +++ b/google-cloud-speech/pom.xml @@ -41,17 +41,17 @@ io.grpc grpc-netty - 1.0.1 + ${grpc.version} io.grpc grpc-stub - 1.0.1 + ${grpc.version} io.grpc grpc-auth - 1.0.1 + ${grpc.version} ${project.groupId} diff --git a/google-cloud-trace/pom.xml b/google-cloud-trace/pom.xml index 18b1f5dd59de..9241659b459c 100644 --- a/google-cloud-trace/pom.xml +++ b/google-cloud-trace/pom.xml @@ -41,17 +41,17 @@ io.grpc grpc-netty - 1.0.1 + ${grpc.version} io.grpc grpc-stub - 1.0.1 + ${grpc.version} io.grpc grpc-auth - 1.0.1 + ${grpc.version} ${project.groupId} diff --git a/google-cloud-vision/pom.xml b/google-cloud-vision/pom.xml index cd7858bc9f18..92bf1833f470 100644 --- a/google-cloud-vision/pom.xml +++ b/google-cloud-vision/pom.xml @@ -41,17 +41,17 @@ io.grpc grpc-netty - 1.0.1 + ${grpc.version} io.grpc grpc-stub - 1.0.1 + ${grpc.version} io.grpc grpc-auth - 1.0.1 + ${grpc.version} ${project.groupId} diff --git a/pom.xml b/pom.xml index cb1c55904a29..c983da64b72d 100644 --- a/pom.xml +++ b/pom.xml @@ -90,6 +90,7 @@ UTF-8 UTF-8 github + 1.0.1 google-cloud