File tree 4 files changed +3
-64
lines changed
appengine-java8/endpoints-v2-migration 4 files changed +3
-64
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,6 @@ This sample provides an example of a [migration][7] from the prior version of
7
7
the new App Engine Maven and Gradle plugins for deploying your Google App Engine
8
8
Standard applications.
9
9
10
- This sample contains comments of how to use the prior Endpoints Frameworks as
11
- well. For clarity, the prior Endpoints Frameworks and the new Endpoints
12
- Frameworks are denoted as Endpoints Frameworks v1.0 and Endpoints Frameworks
13
- v2.0, respectively.
14
-
15
10
Google Cloud Endpoints Frameworks v2.0 provides new functionality which may
16
11
require payment and uses an OpenAPI specification. The OpenAPI development
17
12
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].
68
63
69
64
- You can read more about different user authentication supported [ here] [ 12 ] .
70
65
71
-
72
- 1 . [ Optional] : Use Cloud Endpoints Frameworks v2.0 Maven and Gradle
73
- client library generation plugins with Cloud Endpoints Frameworks v1.0.
74
-
75
- - Uncomment ` Endpoints Frameworks v1.0 ` sections and comment
76
- ` Endpoints Frameworks v2.0 ` sections in the following files.
77
-
78
- ```
79
- pom.xml
80
- build.gradle
81
- src/main/webapp/WEB-INF/web.xml
82
- ```
83
-
84
66
## Build and Deployment
85
67
86
68
### Maven
Original file line number Diff line number Diff line change @@ -49,15 +49,9 @@ dependencies {
49
49
compile ' jstl:jstl:1.2'
50
50
compile group : ' javax.inject' , name : ' javax.inject' , version : ' 1'
51
51
52
- // Uncomment to use Endpoints Frameworks v1.0 and comment the v2.0 section
53
- // compile group: 'com.google.appengine', name: 'appengine-endpoints', version: '+'
54
- // End of Endpoints Frameworks v1.0
55
-
56
- // Endpoints Frameworks v2.0
57
52
// [START endpoints-tools]
58
53
compile group : ' com.google.endpoints' , name : ' endpoints-framework-tools' , version : ' +'
59
54
// [END endpoints-tools]
60
- // End of Endpoints Frameworks v2.0
61
55
}
62
56
63
57
appengine { // App Engine tasks configuration
@@ -71,12 +65,12 @@ appengine { // App Engine tasks configuration
71
65
}
72
66
}
73
67
74
- /* [START endpoints-server]
68
+ // [START endpoints-server]
75
69
endpointsServer {
76
70
// Endpoints Framework Plugin server-side configuration
77
71
hostname = ' YOUR-PROJECT-ID.appspot.com'
78
72
}
79
- [END endpoints-server] */
73
+ // [END endpoints-server]
80
74
81
75
group = ' com.example.helloendpoints' // Generated output GroupId
82
76
version = ' 1' // Version in generated output
Original file line number Diff line number Diff line change @@ -37,26 +37,13 @@ limitations under the License.
37
37
38
38
<dependencies >
39
39
<!-- Compile/runtime dependencies -->
40
- <!-- Uncomment to use Endpoints Frameworks v1.0 and comment the v2.0 section-->
41
- <!--
42
- [START appengine-endpoints]
43
- <dependency>
44
- <groupId>com.google.appengine</groupId>
45
- <artifactId>appengine-endpoints</artifactId>
46
- <version>1.9.48</version>
47
- </dependency>
48
- [END appengine-endpoints]
49
- -->
50
- <!-- End of Endpoints Frameworks v1.0 -->
51
- <!-- Endpoints Frameworks v2.0 -->
52
40
<!-- [START endpoints-frameworks] -->
53
41
<dependency >
54
42
<groupId >com.google.endpoints</groupId >
55
43
<artifactId >endpoints-framework</artifactId >
56
44
<version >2.0.7</version >
57
45
</dependency >
58
46
<!-- [END endpoints-frameworks] -->
59
- <!-- End of Endpoints Frameworks v2.0 -->
60
47
<dependency >
61
48
<groupId >com.google.appengine</groupId >
62
49
<artifactId >appengine-api-1.0-sdk</artifactId >
@@ -97,6 +84,7 @@ limitations under the License.
97
84
<version >1.0.0-beta4</version >
98
85
<configuration >
99
86
<!-- plugin configuration -->
87
+ <hostname >YOUR-PROJECT-ID.appspot.com</hostname >
100
88
</configuration >
101
89
</plugin >
102
90
<!-- [END endpoints-frameworks-plugin] -->
Original file line number Diff line number Diff line change @@ -19,30 +19,6 @@ limitations under the License.
19
19
xsi : schemaLocation =" http://xmlns.jcp.org/xml/ns/javaee
20
20
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
21
21
version =" 3.1" >
22
- <!-- Uncomment to use Endpoints Frameworks v1.0 and comment the v2.0 section -->
23
- <!--
24
- [START appengine-endpoints]
25
- <servlet>
26
- <servlet-name>SystemServiceServlet</servlet-name>
27
- <servlet-class>com.google.api.server.spi.SystemServiceServlet</servlet-class>
28
- <init-param>
29
- <param-name>services</param-name>
30
- <param-value>com.example.helloendpoints.Greetings</param-value>
31
- </init-param>
32
- <init-param>
33
- <param-name>restricted</param-name>
34
- <param-value>false</param-value>
35
- </init-param>
36
- </servlet>
37
- <servlet-mapping>
38
- <servlet-name>SystemServiceServlet</servlet-name>
39
- <url-pattern>/_ah/spi/*</url-pattern>
40
- </servlet-mapping>
41
- [END appengine-endpoints]
42
- -->
43
- <!-- End of Endpoints Frameworks v1.0 -->
44
-
45
- <!-- Endpoints Frameworks v2.0 -->
46
22
<!-- [START endpoints-frameworks] -->
47
23
<servlet >
48
24
<servlet-name >EndpointsServlet</servlet-name >
@@ -61,7 +37,6 @@ limitations under the License.
61
37
<url-pattern >/_ah/api/*</url-pattern >
62
38
</servlet-mapping >
63
39
<!-- [END endpoints-frameworks] -->
64
- <!-- End of Endpoints Frameworks v2.0 -->
65
40
66
41
<welcome-file-list >
67
42
<welcome-file >index.html</welcome-file >
You can’t perform that action at this time.
0 commit comments