From 6b96b9ed171728f709068a849a7ef0c71aad0ffe Mon Sep 17 00:00:00 2001 From: Frank Natividad Date: Fri, 23 Jun 2017 10:15:51 -0700 Subject: [PATCH] Removing Endpoints v1 workflow from java8 samples --- .../endpoints-v2-migration/README.md | 18 ------------- .../endpoints-v2-migration/build.gradle | 10 ++------ .../endpoints-v2-migration/pom.xml | 14 +---------- .../src/main/webapp/WEB-INF/web.xml | 25 ------------------- 4 files changed, 3 insertions(+), 64 deletions(-) diff --git a/appengine-java8/endpoints-v2-migration/README.md b/appengine-java8/endpoints-v2-migration/README.md index a213447c5b1..f53b3f35883 100644 --- a/appengine-java8/endpoints-v2-migration/README.md +++ b/appengine-java8/endpoints-v2-migration/README.md @@ -7,11 +7,6 @@ This sample provides an example of a [migration][7] from the prior version of the new App Engine Maven and Gradle plugins for deploying your Google App Engine Standard applications. -This sample contains comments of how to use the prior Endpoints Frameworks as -well. For clarity, the prior Endpoints Frameworks and the new Endpoints -Frameworks are denoted as Endpoints Frameworks v1.0 and Endpoints Frameworks -v2.0, respectively. - Google Cloud Endpoints Frameworks v2.0 provides new functionality which may require payment and uses an OpenAPI specification. The OpenAPI development process is explained [here][8] and a quickstart is provided [here][9]. @@ -68,19 +63,6 @@ process is explained [here][8] and a quickstart is provided [here][9]. - You can read more about different user authentication supported [here][12]. - -1. [Optional]: Use Cloud Endpoints Frameworks v2.0 Maven and Gradle - client library generation plugins with Cloud Endpoints Frameworks v1.0. - - - Uncomment `Endpoints Frameworks v1.0` sections and comment - `Endpoints Frameworks v2.0` sections in the following files. - - ``` - pom.xml - build.gradle - src/main/webapp/WEB-INF/web.xml - ``` - ## Build and Deployment ### Maven diff --git a/appengine-java8/endpoints-v2-migration/build.gradle b/appengine-java8/endpoints-v2-migration/build.gradle index a7db40d57f4..e8794a10144 100644 --- a/appengine-java8/endpoints-v2-migration/build.gradle +++ b/appengine-java8/endpoints-v2-migration/build.gradle @@ -49,15 +49,9 @@ dependencies { compile 'jstl:jstl:1.2' compile group: 'javax.inject', name: 'javax.inject', version: '1' - // Uncomment to use Endpoints Frameworks v1.0 and comment the v2.0 section - // compile group: 'com.google.appengine', name: 'appengine-endpoints', version: '+' - // End of Endpoints Frameworks v1.0 - - // Endpoints Frameworks v2.0 // [START endpoints-tools] compile group: 'com.google.endpoints', name: 'endpoints-framework-tools', version: '+' // [END endpoints-tools] - // End of Endpoints Frameworks v2.0 } appengine { // App Engine tasks configuration @@ -71,12 +65,12 @@ appengine { // App Engine tasks configuration } } -/* [START endpoints-server] +// [START endpoints-server] endpointsServer { // Endpoints Framework Plugin server-side configuration hostname = 'YOUR-PROJECT-ID.appspot.com' } -[END endpoints-server] */ +// [END endpoints-server] group = 'com.example.helloendpoints' // Generated output GroupId version = '1' // Version in generated output diff --git a/appengine-java8/endpoints-v2-migration/pom.xml b/appengine-java8/endpoints-v2-migration/pom.xml index 21a25d7f0c5..58bcb8a9fad 100644 --- a/appengine-java8/endpoints-v2-migration/pom.xml +++ b/appengine-java8/endpoints-v2-migration/pom.xml @@ -37,18 +37,6 @@ limitations under the License. - - - - com.google.endpoints @@ -56,7 +44,6 @@ limitations under the License. 2.0.7 - com.google.appengine appengine-api-1.0-sdk @@ -97,6 +84,7 @@ limitations under the License. 1.0.0-beta4 + YOUR-PROJECT-ID.appspot.com diff --git a/appengine-java8/endpoints-v2-migration/src/main/webapp/WEB-INF/web.xml b/appengine-java8/endpoints-v2-migration/src/main/webapp/WEB-INF/web.xml index ac8425ad923..2b12ad951e1 100644 --- a/appengine-java8/endpoints-v2-migration/src/main/webapp/WEB-INF/web.xml +++ b/appengine-java8/endpoints-v2-migration/src/main/webapp/WEB-INF/web.xml @@ -19,30 +19,6 @@ limitations under the License. xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1"> - - - - - EndpointsServlet @@ -61,7 +37,6 @@ limitations under the License. /_ah/api/* - index.html