Skip to content

Commit b8bcaca

Browse files
committed
More updates to the quickstart, following the example set in the appengine/flexible quickstart
1 parent d7f2998 commit b8bcaca

File tree

5 files changed

+25
-28
lines changed

5 files changed

+25
-28
lines changed

endpoints/getting-started/pom.xml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<packaging>war</packaging>
77
<version>1.0-SNAPSHOT</version>
88
<groupId>com.example.flexible.endpoints</groupId>
9-
<artifactId>managed-vms-endpoints</artifactId>
9+
<artifactId>flexible-endpoints</artifactId>
1010

1111
<parent>
1212
<artifactId>doc-samples</artifactId>
@@ -15,6 +15,16 @@
1515
<relativePath>../..</relativePath>
1616
</parent>
1717

18+
<properties>
19+
<maven.compiler.target>1.8</maven.compiler.target>
20+
<maven.compiler.source>1.8</maven.compiler.source>
21+
22+
<appengine.maven.plugin>1.0.0</appengine.maven.plugin>
23+
<jetty.maven.plugin>9.3.8.v20160314</jetty.maven.plugin>
24+
25+
<failOnMissingWebXml>false</failOnMissingWebXml> <!-- REQUIRED -->
26+
</properties>
27+
1828
<dependencies>
1929
<dependency>
2030
<groupId>javax.servlet</groupId>
@@ -39,9 +49,8 @@
3949
<plugin>
4050
<groupId>com.google.cloud.tools</groupId>
4151
<artifactId>appengine-maven-plugin</artifactId>
42-
<version>0.1.2</version>
52+
<version>${appengine.maven.plugin}</version>
4353
<configuration>
44-
<gcloud_app_prefix>beta</gcloud_app_prefix>
4554
</configuration>
4655
</plugin>
4756
<plugin>
@@ -52,19 +61,10 @@
5261
<failOnMissingWebXml>false</failOnMissingWebXml>
5362
</configuration>
5463
</plugin>
55-
<plugin>
56-
<groupId>org.apache.maven.plugins</groupId>
57-
<version>3.3</version>
58-
<artifactId>maven-compiler-plugin</artifactId>
59-
<configuration>
60-
<source>1.7</source>
61-
<target>1.7</target>
62-
</configuration>
63-
</plugin>
6464
<plugin>
6565
<groupId>org.eclipse.jetty</groupId>
6666
<artifactId>jetty-maven-plugin</artifactId>
67-
<version>9.3.8.v20160314</version>
67+
<version>${jetty.maven.plugin}</version>
6868
</plugin>
6969
</plugins>
7070
</build>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
FROM gcr.io/google_appengine/jetty9
22

3-
ADD managed-vms-endpoints-1.0-SNAPSHOT.war $JETTY_BASE/webapps/root.war
3+
ADD endpoints-1.0-SNAPSHOT.war $JETTY_BASE/webapps/root.war
44
ADD . /app

endpoints/getting-started/src/main/appengine/app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
runtime: custom
2-
vm: true
2+
env: flex
33

44
handlers:
55
- url: /.*

endpoints/getting-started/src/main/java/com/example/managedvms/endpoints/AuthInfoServlet.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,19 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.example.managedvms.endpoints;
17+
package com.example.endpoints;
18+
19+
import com.google.gson.Gson;
20+
import com.google.gson.JsonObject;
1821

1922
import java.io.IOException;
20-
import java.io.PrintWriter;
2123
import java.util.Base64;
2224

2325
import javax.servlet.annotation.WebServlet;
2426
import javax.servlet.http.HttpServlet;
2527
import javax.servlet.http.HttpServletRequest;
2628
import javax.servlet.http.HttpServletResponse;
2729

28-
import com.google.gson.Gson;
29-
import com.google.gson.JsonObject;
30-
3130
/**
3231
* A servlet that returns authentication information.
3332
* See swagger.yaml for authentication mechanisms (e.g. JWT tokens, Google ID token).

endpoints/getting-started/src/main/java/com/example/managedvms/endpoints/EchoServlet.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,21 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.example.managedvms.endpoints;
17+
package com.example.endpoints;
18+
19+
import com.google.gson.Gson;
20+
import com.google.gson.JsonObject;
21+
import com.google.gson.JsonParseException;
22+
import com.google.gson.stream.JsonReader;
1823

1924
import java.io.IOException;
20-
import java.io.InputStream;
21-
import java.io.OutputStream;
2225
import java.util.Map;
2326

2427
import javax.servlet.annotation.WebServlet;
2528
import javax.servlet.http.HttpServlet;
2629
import javax.servlet.http.HttpServletRequest;
2730
import javax.servlet.http.HttpServletResponse;
2831

29-
import com.google.gson.Gson;
30-
import com.google.gson.JsonObject;
31-
import com.google.gson.JsonParseException;
32-
import com.google.gson.stream.JsonReader;
33-
3432
/**
3533
* A servlet that echoes JSON message bodies.
3634
*/

0 commit comments

Comments
 (0)