Skip to content

Commit 01edb36

Browse files
authored
Java 11 Read Me updates (GoogleCloudPlatform#1444)
* Read me updates * Add links to docs * Updated path
1 parent 21c141a commit 01edb36

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

appengine-java11/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,23 @@ To switch to an Open JDK 11 in a Cloud shell session, you can use:
4848

4949
## Java 11 runtime
5050

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+
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+
56+
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.
57+
58+
* [`custom-entrypoint`](custom-entrypoint): Run a simple server
59+
* [`helloworld-servlet`](helloworld-servlet): Run a WAR package servlet
60+
61+
With a custom `entrypoint`, you can also construct and package your application as a thin JAR (or an exploded JAR). When you deploy your application, the App Engine plugin will only upload the files that changed, rather than the entire [Uber JAR][uber-jar] package.
62+
63+
For more information on the Java 11 runtime, see
64+
[Building an App](https://cloud.google.com/appengine/docs/standard/java11/building-app/)
65+
and [Migrating your App Engine app from Java 8 to Java 11](https://cloud.google.com/appengine/docs/standard/java11/java-differences).
66+
67+
5168
### Servlet Runtime
5269

5370
To migrate to the Java 11 runtime, your application must have a
@@ -59,6 +76,7 @@ context root of the web application listening to port 8080.
5976
Some samples create a `<sample-name>.war` which is used as an argument in the
6077
App Engine `app.yaml` entrypoint field.
6178

79+
6280
### App Engine Staging Directory
6381

6482
The App Engine Plugin will stage all the files to upload into App Engine

appengine-java11/appengine-simple-jetty-main/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ the provided server is running your application as expected.
7070

7171
- Start the server with your `WAR` file as an argument:
7272
```
73-
mvn exec:java -Dexec.args="<path/to/your/war/file"
73+
mvn exec:java -Dexec.args="../sample/target/sample.war"
7474
```
7575

7676
[jetty-plugin]: https://www.eclipse.org/jetty/documentation/9.4.x/jetty-maven-plugin.html

0 commit comments

Comments
 (0)