Skip to content

Commit f4d2ee8

Browse files
authored
Update READMEs with source deploy functionality (GoogleCloudPlatform#2989)
Modifies the deployment methods to the new source deploy functionality for those applications that do not have a dependency on the appengine-simple-jetty-main artifact
1 parent 82d3fe6 commit f4d2ee8

File tree

9 files changed

+16
-14
lines changed

9 files changed

+16
-14
lines changed

appengine-java11/README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,14 @@ To switch to an Open JDK 11 in a Cloud shell session, you can use:
4747
```
4848

4949
## Java 11 runtime
50+
One way to deploy to App Engine Java 11 is directly from source.
5051

51-
The simplest way to deploy to App Engine Java 11 is using an executable [Uber JAR][uber-jar]. App Engine will automatically configure the `entrypoint` to run the JAR file.
52+
* [`springboot-helloworld`](springboot-helloworld): Deploy a spring-boot application from source
53+
* [`http-server`](http-server): Deploy an http application from source
5254

53-
* [`springboot-helloworld`](springboot-helloworld): Build a fat JAR with Spring Boot
54-
* [`http-server`](http-server): Build a JAR using the Maven JAR Plugin
55+
Another way is using the Maven App Engine Plugin to deploy an executable [Uber JAR][uber-jar]. App Engine will automatically configure the `entrypoint` to run the JAR file. Use this method when your application requires dependencies that are located locally, such as the [`appengine-simple-jetty-main`](appengine-simple-jetty-main) artifact.
56+
57+
* [`gaeinfo`](gaeinfo): Build a JAR using the Maven JAR Plugin
5558

5659
In addition, App Engine allows you to execute the `java` command directly in the `app.yaml` `entrypoint` field, so you can further customize your app's startup.
5760

appengine-java11/http-server/README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Standalone HTTP Server on Google App Engine Standard with Java 11
22

3-
This sample shows how to deploy an application to Google App Engine using the
4-
a fat jar. There is no `entrypoint` field listed in the [`app.yaml`](src/main/appengine/app.yaml),
5-
as the application is a single fat jar with the correct MainClass field in the MANIFEST.
3+
This sample shows how to deploy an application to Google App Engine from source. The `entrypoint` field listed in the [`app.yaml`](src/main/appengine/app.yaml) is not required,
4+
as GAE will determine the entrypoint by searching the `target` directory for the .jar file with a Main-Class Manifest entry.
65

76
## Setup
87

@@ -11,7 +10,7 @@ See [Prerequisites](../README.md#Prerequisites).
1110
## Deploy to App Engine Standard
1211

1312
```
14-
mvn clean package appengine:deploy
13+
gcloud app deploy
1514
```
1615

1716
To view your app, use command:

appengine-java11/kotlin-ktor/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ See [Prerequisites](../README.md#Prerequisites).
1010
## Deploying
1111

1212
```bash
13-
mvn clean package appengine:deploy
13+
gcloud app deploy
1414
```
1515

1616
To view your app, use command:

appengine-java11/micronaut-helloworld/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ See [Prerequisites](../README.md#Prerequisites).
1010
## Deploying
1111

1212
```bash
13-
mvn clean package appengine:deploy
13+
gcloud app deploy
1414
```
1515

1616
To view your app, use command:

appengine-java11/quarkus-helloworld/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ See [Prerequisites](../README.md#Prerequisites).
1010
## Deploying
1111

1212
```bash
13-
mvn clean package appengine:deploy
13+
gcloud app deploy
1414
```
1515

1616
To view your app, use command:

appengine-java11/sparkjava-helloworld/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ See [Prerequisites](../README.md#Prerequisites).
1010
## Deploying
1111

1212
```bash
13-
mvn clean package appengine:deploy
13+
gcloud app deploy
1414
```
1515

1616
To view your app, use command:

appengine-java11/springboot-helloworld/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ See [Prerequisites](../README.md#Prerequisites).
1010
## Deploying
1111

1212
```bash
13-
mvn clean package appengine:deploy
13+
gcloud app deploy
1414
```
1515

1616
To view your app, use command:

appengine-java11/tasks/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ cd java-docs-samples/appengine-java11/task-handler
5151

5252
- Deploy the app
5353
```
54-
mvn clean package appengine:deploy
54+
gcloud app deploy
5555
```
5656

5757
## Run the Sample Using the Command Line

appengine-java11/vertx-helloworld/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ See [Prerequisites](../README.md#Prerequisites).
1010
## Deploying
1111

1212
```bash
13-
mvn clean package appengine:deploy
13+
gcloud app deploy
1414
```
1515

1616
## See the application page

0 commit comments

Comments
 (0)