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 6
6
<packaging >war</packaging >
7
7
<version >1.0-SNAPSHOT</version >
8
8
<groupId >com.example.flexible.endpoints</groupId >
9
- <artifactId >managed-vms -endpoints</artifactId >
9
+ <artifactId >flexible -endpoints</artifactId >
10
10
11
11
<parent >
12
12
<artifactId >doc-samples</artifactId >
15
15
<relativePath >../..</relativePath >
16
16
</parent >
17
17
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
+
18
28
<dependencies >
19
29
<dependency >
20
30
<groupId >javax.servlet</groupId >
39
49
<plugin >
40
50
<groupId >com.google.cloud.tools</groupId >
41
51
<artifactId >appengine-maven-plugin</artifactId >
42
- <version >0.1.2 </version >
52
+ <version >${appengine.maven.plugin} </version >
43
53
<configuration >
44
- <gcloud_app_prefix >beta</gcloud_app_prefix >
45
54
</configuration >
46
55
</plugin >
47
56
<plugin >
52
61
<failOnMissingWebXml >false</failOnMissingWebXml >
53
62
</configuration >
54
63
</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 >
64
64
<plugin >
65
65
<groupId >org.eclipse.jetty</groupId >
66
66
<artifactId >jetty-maven-plugin</artifactId >
67
- <version >9.3.8.v20160314 </version >
67
+ <version >${jetty.maven.plugin} </version >
68
68
</plugin >
69
69
</plugins >
70
70
</build >
Original file line number Diff line number Diff line change 1
1
FROM gcr.io/google_appengine/jetty9
2
2
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
4
4
ADD . /app
Original file line number Diff line number Diff line change 1
1
runtime : custom
2
- vm : true
2
+ env : flex
3
3
4
4
handlers :
5
5
- url : /.*
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- package com .example .managedvms .endpoints ;
17
+ package com .example .endpoints ;
18
+
19
+ import com .google .gson .Gson ;
20
+ import com .google .gson .JsonObject ;
18
21
19
22
import java .io .IOException ;
20
- import java .io .PrintWriter ;
21
23
import java .util .Base64 ;
22
24
23
25
import javax .servlet .annotation .WebServlet ;
24
26
import javax .servlet .http .HttpServlet ;
25
27
import javax .servlet .http .HttpServletRequest ;
26
28
import javax .servlet .http .HttpServletResponse ;
27
29
28
- import com .google .gson .Gson ;
29
- import com .google .gson .JsonObject ;
30
-
31
30
/**
32
31
* A servlet that returns authentication information.
33
32
* See swagger.yaml for authentication mechanisms (e.g. JWT tokens, Google ID token).
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
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 ;
18
23
19
24
import java .io .IOException ;
20
- import java .io .InputStream ;
21
- import java .io .OutputStream ;
22
25
import java .util .Map ;
23
26
24
27
import javax .servlet .annotation .WebServlet ;
25
28
import javax .servlet .http .HttpServlet ;
26
29
import javax .servlet .http .HttpServletRequest ;
27
30
import javax .servlet .http .HttpServletResponse ;
28
31
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
-
34
32
/**
35
33
* A servlet that echoes JSON message bodies.
36
34
*/
You can’t perform that action at this time.
0 commit comments