From 4ac4d4937045b35dd7ae57cc138a5e1fa29a2259 Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Wed, 3 Feb 2016 09:05:16 -0800 Subject: [PATCH] Help steer new users away from copying our build.gradle The jsonp dependency string is no longer shared because it was only used in one place and someone trying to compile the examples using a new build.gradle will need to add that dependency. It was a bit complex to follow how libraries.jsonp worked and it wasn't really adding any value in this particular case. --- build.gradle | 1 - examples/build.gradle | 13 ++++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 227bd209fa..e090d76e45 100644 --- a/build.gradle +++ b/build.gradle @@ -135,7 +135,6 @@ subprojects { // used to collect benchmark results hdrhistogram: 'org.hdrhistogram:HdrHistogram:2.1.4', hpack: 'com.twitter:hpack:0.10.1', - jsonp: 'org.glassfish:javax.json:1.0.4', jsr305: 'com.google.code.findbugs:jsr305:3.0.0', oauth_client: 'com.google.auth:google-auth-library-oauth2-http:0.3.0', okhttp: 'com.squareup.okhttp:okhttp:2.5.0', diff --git a/examples/build.gradle b/examples/build.gradle index 3563177097..88a0208fe0 100644 --- a/examples/build.gradle +++ b/examples/build.gradle @@ -1,3 +1,14 @@ +// Don't consider this build file part of the example! It is much more complex +// than yours needs to be. For your own build file, please follow ../README.md +// instead. For a starting point you can make a build.gradle file with: +// +// apply plugin: 'java' +// repositories { +// mavenCentral() +// } +// +// Then copy the snippets from README.md. + apply plugin: 'application' description = "grpc Examples" @@ -18,7 +29,7 @@ dependencies { project(':grpc-netty'), project(':grpc-protobuf'), project(':grpc-stub'), - libraries.jsonp + 'org.glassfish:javax.json:1.0.4' } configureProtoCompilation()