A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cloud.google.com/appengine/docs/flexible/java/gradle-reference below:

App Engine Gradle Plugin Tasks and Properties | Google App Engine flexible environment docs

App Engine Gradle Plugin Tasks and Properties

Stay organized with collections Save and categorize content based on your preferences.

After the App Engine Gradle plugin is

added to your project

, you can use the following App Engine-specific Gradle tasks in your Java 8 app:

Task Description tasks Displays help information on installed tasks. appengineStage Generates an application directory for deployment. appengineDeploy Stages and deploys an application to App Engine. appengineDeployCron Deploys a cron.yaml configuration file to App Engine. appengineDeployDispatch Deploys a dispatch.yaml configuration file to App Engine. appengineDeployDos Deploys a dos.yaml configuration file to App Engine. appengineDeployIndex Deploys an index.yaml configuration file to App Engine. appengineDeployQueue Deploys a queue.yaml configuration file to App Engine. jettyRun Runs the development server using Jetty's default configurations. To find out more about the Gretty plugin, see Gretty Configuration and Gretty Tasks

To see a list of all the tasks:

gradle tasks

For more information on how to set up and use Gradle, see Using App Engine Gradle and the app-gradle-plugin repository on GitHub.

Task properties

The contents of the gradle.build file are a set of rules to describe your build. It's written in a domain specific language for describing builds, based on the Groovy language.

Each task has associated properties below that you can use. You can specify these properties in the gradle.build file using a configuration closure, task, and properties.

The following sample demonstrates how to specify Gradle tasks for Java 8. For Java version 11 and later, see

Java runtime

for more information about using newer versions.

In this example:

If you only have a to specify a few properties, you can set them in a single line:

  appengine.deploy.stopPreviousVersion = true

See the following sections for a list of the properties that are available for each task.

appengineStage

task(stage)

Generates an application directory for deployment. Used by the appengineDeploy task and the jettyRun task.

You can use the following properties:

Property Description artifact Built artifact that has all of the classes, resources, and manifests. Default is build/libs/[YOUR_SERVLET].war. appEngineDirectory Location of the app.yaml file. Default is src/main/appengine. dockerDirectory Location of the Dockerfile. Default is src/main/docker. stagingDirectory Required. The directory to which to stage the application. Default is build/staged-app. appengineDeploy

task(deploy)

Stages and deploys an application to App Engine.

Each task has associated properties below that you can use. You can specify these properties in the gradle.build file using a configuration closure, task, and properties.

In the following example:

If you only have a to specify a few properties, you can set them in a single line:

  appengine.run.port = 8888
Property Description appEngineDirectory Location of .yaml configuration files (cron, index, etc) from which configuration specific deployments (appengineDeployCron, etc) will deploy from. For flexible applications, this defaults to src/main/appengine. bucket The Cloud Storage bucket used to stage files associated with the deployment. If this argument is not specified, the application's default bucket is used. deployables The YAML files for the services or configurations you want to deploy. Default is the app.yaml file in the staging directory. If that is not found, attempts to automatically generate necessary configuration files (such as app.yaml) in the staging directory. imageUrl Deploy with a specific Docker image. Docker URL must be from one of the valid Artifact Registry hostnames. project The Google Cloud Platform project name to use for this invocation. Default is the current project selected when initializing the gcloud tool. To verify, use gcloud config list project. promote Promote the deployed version to receive all traffic. Default is True. server The App Engine server to connect to. Typically, you do not need to change this value. stopPreviousVersion Stop the previously running version when deploying a new version that receives all traffic. version The version of the app that will be created or replaced by this deployment. If you do not specify a version, one will be generated for you. Global properties Property Description tools.cloudSdkHome Optional property to configure the location of the Google Cloud CLI. Typically the plugin finds this in the gcloud CLI when it is installed with gcloud components install app-engine-java.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-07 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["The App Engine Gradle plugin provides various tasks for managing Java 8 applications, including `appengineStage`, `appengineDeploy`, and configuration-specific deployment tasks like `appengineDeployCron`."],["Gradle tasks such as `appengineDeploy` and `jettyRun` utilize the `appengineStage` task to generate the necessary application directory for deployment."],["You can configure tasks like `deploy` using properties in the `gradle.build` file, allowing you to set parameters like `stopPreviousVersion` and `promote` to control the deployment process."],["The `appengineDeploy` task uses properties such as `appEngineDirectory`, `bucket`, and `imageUrl` to control the specifics of your application's deployment process."],["To see all the tasks available you can use the command: `gradle tasks`."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4