Fetching contributors…
Cannot retrieve contributors at this time
93 lines (65 sloc) 4.16 KB

project status image build status image Maven Central

Google App Engine Gradle plugin

This Gradle plugin provides tasks to build and deploy Google App Engine applications.

2.0.0 Release Candidates are live
2.0.0-rc have been published. The behavior of the appengine-gradle-plugin has changed since v1.+; please see the CHANGELOG for a full list of changes and an updated USER GUIDE for details. If you are having trouble using or updating your plugin, please file a new issue.

Reference Documentation

App Engine Standard Environment:

App Engine Flexible Environment:


Gradle is required to build and run the plugin. Version compatibility is listed below.

appengine-gradle-plugin gradle version
2.0.0 + 4.0 or newer
1.3.3 + 3.4.1 or newer
1.0.0 - 1.3.2 3.0 or newer

You must have Google Cloud SDK installed.

Cloud SDK app-engine-java component is also required. Install it by running:

gcloud components install app-engine-java

Login and configure Cloud SDK:

gcloud init

How to use

In your Gradle App Engine Java app, add the following plugin to your build.gradle:

apply plugin: ''

The plugin JAR needs to be defined in the classpath of your build script. It is directly available on Maven Central. Alternatively, you can download it from GitHub and deploy it to your local repository. The following code snippet shows an example on how to retrieve it from Maven Central:

buildscript {
  repositories {

  dependencies {
    classpath ''

You can now run commands like ./gradlew appengineDeploy in the root folder of your Java application.

Supported tasks

Task Description
appengineShowConfiguration Shows the current App Engine plugin configuration properties.
appengineStage Generates an application directory for deployment.
appengineDeploy Stages and deploys an application to App Engine.
appengineDeployCron Deploys cron configuration (cron.yaml).
appengineDeployDispatch Deploys dispatch configuration (dispatch.yaml).
appengineDeployDos Deploys dos configuration (dos.yaml).
appengineDeployIndex Deploys datastore index configuration (index.yaml).
appengineDeployQueue Deploys queue configuration (queue.yaml).

Dev App Server tasks for standard environment apps only:

Task Description
appengineRun Runs the App Engine local development server.
appengineStart Runs the App Engine local development server in the background.
appengineStop Stops a running App Engine web development server.

Task documentation is available by running:

./gradlew help --task [task]


If you wish to build this plugin from source, please see the contributor instructions.