File tree Expand file tree Collapse file tree 5 files changed +25
-28
lines changed
endpoints/getting-started
java/com/example/managedvms/endpoints Expand file tree Collapse file tree 5 files changed +25
-28
lines changed Original file line number Diff line number Diff line change 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 >
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 >
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 >
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 >
Original file line number Diff line number Diff line change 11FROM 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
44ADD . /app
Original file line number Diff line number Diff line change 11runtime : custom
2- vm : true
2+ env : flex
33
44handlers :
55- url : /.*
Original file line number Diff line number Diff line change 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
1922import java .io .IOException ;
20- import java .io .PrintWriter ;
2123import java .util .Base64 ;
2224
2325import javax .servlet .annotation .WebServlet ;
2426import javax .servlet .http .HttpServlet ;
2527import javax .servlet .http .HttpServletRequest ;
2628import 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).
Original file line number Diff line number Diff line change 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
1924import java .io .IOException ;
20- import java .io .InputStream ;
21- import java .io .OutputStream ;
2225import java .util .Map ;
2326
2427import javax .servlet .annotation .WebServlet ;
2528import javax .servlet .http .HttpServlet ;
2629import javax .servlet .http .HttpServletRequest ;
2730import 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 */
You can’t perform that action at this time.
0 commit comments