Skip to content

Commit 4b6617d

Browse files
authored
Update Cloud SQL sample App Engine xml and README (GoogleCloudPlatform#7324)
1 parent 8f89998 commit 4b6617d

6 files changed

Lines changed: 13 additions & 13 deletions

File tree

cloud-sql/mysql/servlet/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ mvn function:run -Drun.functionTarget=com.example.cloudsql.functions.Main
113113

114114
### Deploy to Google App Engine
115115

116-
First, update `src/main/webapp/WEB-INF/appengine-web.xml` with the correct values to pass the
117-
environment variables into the runtime.
116+
First, update [`src/main/webapp/WEB-INF/appengine-web.xml`](src/main/webapp/WEB-INF/appengine-web.xml)
117+
with the correct values to pass the environment variables into the runtime.
118118

119119
Next, the following command will deploy the application to your Google Cloud project:
120120
```bash
121-
mvn clean package appengine:deploy
121+
mvn clean package appengine:deploy -DskipTests
122122
```
123123

124124
### Deploy to Cloud Run

cloud-sql/mysql/servlet/src/main/webapp/WEB-INF/appengine-web.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
-->
1717
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
1818
<threadsafe>true</threadsafe>
19-
<runtime>java8</runtime>
19+
<runtime>java17</runtime>
2020
<env-variables>
2121
<env-var name="INSTANCE_CONNECTION_NAME" value="my-project:region:instance" />
2222
<env-var name="DB_USER" value="my-db-user" />

cloud-sql/postgres/servlet/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ mvn function:run -Drun.functionTarget=com.example.cloudsql.functions.Main
103103

104104
### Deploy to Google App Engine
105105

106-
First, update `src/main/webapp/WEB-INF/appengine-web.xml` with the correct values to pass the
107-
environment variables into the runtime.
106+
First, update [`src/main/webapp/WEB-INF/appengine-web.xml`](src/main/webapp/WEB-INF/appengine-web.xml)
107+
with the correct values to pass the environment variables into the runtime.
108108

109109
Next, the following command will deploy the application to your Google Cloud project:
110110
```bash
111-
mvn clean package appengine:deploy
111+
mvn clean package appengine:deploy -DskipTests
112112
```
113113

114114
### Deploy to Cloud Run

cloud-sql/postgres/servlet/src/main/webapp/WEB-INF/appengine-web.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
-->
1717
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
1818
<threadsafe>true</threadsafe>
19-
<runtime>java8</runtime>
19+
<runtime>java17</runtime>
2020
<env-variables>
2121
<env-var name="INSTANCE_CONNECTION_NAME" value="my-project:region:instance" />
2222
<env-var name="DB_USER" value="my-db-user" />

cloud-sql/sqlserver/servlet/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ To run the application locally as a Cloud Function, run the following command:
9393
mvn function:run -Drun.functionTarget=com.example.cloudsql.functions.Main
9494
```
9595

96-
### Deploy to Google Cloud
96+
### Deploy to Google App Engine
9797

98-
First, update `src/main/webapp/WEB-INF/appengine-web.xml` with the correct values to pass the
99-
environment variables into the runtime.
98+
First, update [`src/main/webapp/WEB-INF/appengine-web.xml`](src/main/webapp/WEB-INF/appengine-web.xml)
99+
with the correct values to pass the environment variables into the runtime.
100100

101101
Next, the following command will deploy the application to your Google Cloud project:
102102
```bash
103-
mvn clean package appengine:deploy
103+
mvn clean package appengine:deploy -DskipTests
104104
```
105105

106106
### Deploy to Cloud Run

cloud-sql/sqlserver/servlet/src/main/webapp/WEB-INF/appengine-web.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
-->
1717
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
1818
<threadsafe>true</threadsafe>
19-
<runtime>java8</runtime>
19+
<runtime>java17</runtime>
2020
<env-variables>
2121
<env-var name="INSTANCE_CONNECTION_NAME" value="project-name:region-name:instance-name" />
2222
<env-var name="DB_USER" value="my-db-user" />

0 commit comments

Comments
 (0)