diff --git a/appengine-java8/endpoints-v2-guice/README.md b/appengine-java8/endpoints-v2-guice/README.md index c93ae1b1ae0..e69d9cdf87f 100644 --- a/appengine-java8/endpoints-v2-guice/README.md +++ b/appengine-java8/endpoints-v2-guice/README.md @@ -34,7 +34,7 @@ To build the project: To generate the required configuration file `openapi.json`: - mvn endpoints-framework:openApiDoc + mvn endpoints-framework:openApiDocs ### Deploying the sample API to App Engine diff --git a/appengine-java8/endpoints-v2-guice/build.gradle b/appengine-java8/endpoints-v2-guice/build.gradle index b2946c97068..ef45f8673b6 100644 --- a/appengine-java8/endpoints-v2-guice/build.gradle +++ b/appengine-java8/endpoints-v2-guice/build.gradle @@ -44,16 +44,20 @@ apply plugin: 'com.google.cloud.tools.appengine' dependencies { compile 'com.google.endpoints:endpoints-framework:2.0.8' + // [START guice_dependency] compile 'com.google.endpoints:endpoints-framework-guice:' + // [END guice_dependency] compile 'com.google.endpoints:endpoints-management-control-appengine:1.0.5' compile 'com.google.endpoints:endpoints-framework-auth:1.0.5' } +// [START endpoints_plugin_configuration] endpointsServer { // Endpoints Framework Plugin server-side configuration hostname = "${projectId}.appspot.com" serviceClasses = ['com.example.echo.Echo'] } +// [END endpoints_plugin_configuration] appengine { // App Engine tasks configuration deploy { // deploy configuration diff --git a/appengine-java8/endpoints-v2-guice/pom.xml b/appengine-java8/endpoints-v2-guice/pom.xml index 7cdfb56008b..199d1512106 100644 --- a/appengine-java8/endpoints-v2-guice/pom.xml +++ b/appengine-java8/endpoints-v2-guice/pom.xml @@ -47,11 +47,13 @@ endpoints-framework ${endpoints.framework.version} + com.google.endpoints endpoints-framework-guice 2.0.9 + com.google.endpoints endpoints-management-control-appengine-all @@ -102,6 +104,7 @@ + com.google.cloud.tools endpoints-framework-maven-plugin @@ -113,14 +116,8 @@ com.example.echo.Echo - - - com.google.endpoints - endpoints-management-control-appengine-all - 1.0.5 - - + org.codehaus.mojo versions-maven-plugin diff --git a/appengine-java8/endpoints-v2-guice/src/main/java/com/example/echo/EchoGuiceListener.java b/appengine-java8/endpoints-v2-guice/src/main/java/com/example/echo/EchoGuiceListener.java index b007f059606..7de3ed6546e 100644 --- a/appengine-java8/endpoints-v2-guice/src/main/java/com/example/echo/EchoGuiceListener.java +++ b/appengine-java8/endpoints-v2-guice/src/main/java/com/example/echo/EchoGuiceListener.java @@ -16,7 +16,6 @@ package com.example.echo; -//import com.google.api.server.spi.guice.GuiceServletContextListener; import com.google.inject.Guice; import com.google.inject.Injector; import com.google.inject.servlet.GuiceServletContextListener; diff --git a/appengine-java8/endpoints-v2-guice/src/main/webapp/WEB-INF/appengine-web.xml b/appengine-java8/endpoints-v2-guice/src/main/webapp/WEB-INF/appengine-web.xml index 3ac31f198c8..179f0a3a364 100644 --- a/appengine-java8/endpoints-v2-guice/src/main/webapp/WEB-INF/appengine-web.xml +++ b/appengine-java8/endpoints-v2-guice/src/main/webapp/WEB-INF/appengine-web.xml @@ -18,10 +18,6 @@ java8 true - - 2 - - diff --git a/appengine-java8/endpoints-v2-guice/src/main/webapp/WEB-INF/web.xml b/appengine-java8/endpoints-v2-guice/src/main/webapp/WEB-INF/web.xml index 7d126e19349..bb673abc080 100644 --- a/appengine-java8/endpoints-v2-guice/src/main/webapp/WEB-INF/web.xml +++ b/appengine-java8/endpoints-v2-guice/src/main/webapp/WEB-INF/web.xml @@ -17,6 +17,7 @@ + guiceFilter com.google.inject.servlet.GuiceFilter @@ -35,9 +36,6 @@ com.example.echo.EchoGuiceListener - - - index.html - + diff --git a/appengine/endpoints-frameworks-v2/guice-example/src/main/webapp/WEB-INF/appengine-web.xml b/appengine/endpoints-frameworks-v2/guice-example/src/main/webapp/WEB-INF/appengine-web.xml index 45e7f688ad0..24bcdb52320 100644 --- a/appengine/endpoints-frameworks-v2/guice-example/src/main/webapp/WEB-INF/appengine-web.xml +++ b/appengine/endpoints-frameworks-v2/guice-example/src/main/webapp/WEB-INF/appengine-web.xml @@ -17,10 +17,6 @@ true - - 2 - - diff --git a/appengine/endpoints-frameworks-v2/guice-example/src/main/webapp/WEB-INF/web.xml b/appengine/endpoints-frameworks-v2/guice-example/src/main/webapp/WEB-INF/web.xml index 7d126e19349..4784d3b3b5b 100644 --- a/appengine/endpoints-frameworks-v2/guice-example/src/main/webapp/WEB-INF/web.xml +++ b/appengine/endpoints-frameworks-v2/guice-example/src/main/webapp/WEB-INF/web.xml @@ -36,8 +36,4 @@ com.example.echo.EchoGuiceListener - - index.html - -