Skip to content

Commit ef80c83

Browse files
author
Frank Natividad
committed
Adding gradle wrapper to backend and migration endpoints samples
1 parent da162ca commit ef80c83

File tree

8 files changed

+280
-14
lines changed

8 files changed

+280
-14
lines changed

appengine/endpoints-frameworks-v2/backend/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ You will get a 200 response with the following data:
7979

8080
0. Edit the file `build.gradle`.
8181

82-
0. For `def projectId = 'YOUR_PROJECT_ID'`, replace the value `YOUR_PROJECT_ID` with
83-
your project ID.
82+
0. For `def projectId = 'YOUR_PROJECT_ID'`, replace the value `YOUR_PROJECT_ID`
83+
with your project ID.
8484

8585
0. Edit the file `src/main/java/com/example/echo/Echo.java
8686

@@ -90,9 +90,11 @@ your project ID.
9090

9191
### Building the sample project
9292

93-
To build the project use:
93+
To build the project on unix-based systems:
94+
95+
./gradlew build
9496

95-
gradle build
97+
Windows users: Use `gradlew.bat` instead of `./gradlew`
9698

9799
<details>
98100
<summary>more details</summary>
@@ -107,7 +109,7 @@ To build the project use:
107109

108110
To generate the required configuration file `openapi.json`:
109111

110-
gradle endpointsOpenApiDocs
112+
./gradlew endpointsOpenApiDocs
111113

112114
This results in a file in build/endpointsOpenApiDocs/openapi.json
113115

@@ -121,7 +123,7 @@ To deploy the sample API:
121123

122124
0. Deploy the API implementation code by invoking:
123125

124-
gradle appengineDeploy
126+
./gradlew appengineDeploy
125127

126128
The first time you upload a sample app, you may be prompted to authorize the
127129
deployment. Follow the prompts: when you are presented with a browser window
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Thu Jun 01 15:23:25 PDT 2017
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-bin.zip

appengine/endpoints-frameworks-v2/backend/gradlew

Lines changed: 172 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

appengine/endpoints-frameworks-v2/backend/gradlew.bat

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

appengine/endpoints-frameworks-v2/migration-example/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ process is explained [here][8] and a quickstart is provided [here][9].
3939
defined in either the Maven or Gradle build script. Hostname is used when a
4040
discovery document is generated.
4141

42-
- [Maven - pom.xml](pom.xml#L101)
43-
- [Gradle - build.gradle](build.gradle#L77)
42+
- Maven - pom.xml
43+
- Gradle - build.gradle
4444

4545
1. [Optional]: User Authenticating with Google Accounts in Web Clients
4646

@@ -111,7 +111,9 @@ process is explained [here][8] and a quickstart is provided [here][9].
111111
112112
1. Build and Run the application locally at [http://localhost:8080][5] by using:
113113
114-
`gradle clean appengineRun`
114+
`./gradlew clean appengineRun`
115+
116+
Windows users: Use `gradlew.bat` instead of `./gradlew`
115117
116118
1. Explore local server's API explorer by browsing to:
117119
@@ -120,16 +122,16 @@ process is explained [here][8] and a quickstart is provided [here][9].
120122
1. Generate the discovery document located at
121123
`build/endpointsDiscoveryDocs/helloworld-v1-rest.discovery` by using:
122124
123-
`gradle endpointsDiscoveryDocs`
125+
`./gradlew endpointsDiscoveryDocs`
124126
125127
1. Generate the client library located at
126128
`build/endpointsClientLibs/helloworld-v1-java.zip` by using:
127129
128-
`gradle endpointsClientLibs`
130+
`./gradlew endpointsClientLibs`
129131
130132
1. Deploy your application to Google App Engine by using:
131133
132-
`gradle appengineDeploy`
134+
`./gradlew appengineDeploy`
133135
134136
[1]: https://cloud.google.com/appengine/docs/java/
135137
[2]: http://java.com/en/
Binary file not shown.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Mon Jan 16 22:18:59 PST 2017
1+
#Thu Jun 01 13:22:47 PDT 2017
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-bin.zip

0 commit comments

Comments
 (0)