To set up your environment for developing on Java 11:
Install the latest release of Java 11.
See Java 11 Runtime Environment for a list of the supported versions.
Install and initialize the Cloud SDK. If you already have the Cloud SDK installed and initialized, run the
gcloud components updatecommand to update to the latest release.
The Cloud SDK provides you the
gcloudcommand-line tooling for deploying and managing your apps.
By downloading, you agree to be bound by the Terms that govern use of the Cloud SDK for App Engine.
Install the gcloud component that includes the App Engine extension for Java 11.
If you used the
yumpackage managers to install the Cloud SDK, use those same package managers to install the gcloud component.
Otherwise, use the following command:
gcloud components install app-engine-java
Installing optional tools
For access to code, samples, libraries, and tools in GitHub, install Git:
Install Java 11 tools. You can use the Maven or Gradle plugins to build, deploy, and manage your Java 11 apps:
Give permission to Cloud Build
When you deploy your app, App Engine uses Cloud Build to build the app into a container and deploy the container to the runtime. Cloud Build does not have permission to deploy Java 11 apps by default, so you need to give Cloud Build permission to deploy apps in your project.