mirror of
https://github.com/gradle/actions
synced 2024-11-24 02:12:12 +00:00
Minor update to setup-gradle README
This commit is contained in:
parent
f218f2e104
commit
b6816cf21e
1 changed files with 1 additions and 3 deletions
|
@ -17,9 +17,7 @@ However, the `setup-gradle` action offers a number of advantages over this appro
|
||||||
The `setup-gradle` action is designed to provide these benefits with minimal configuration.
|
The `setup-gradle` action is designed to provide these benefits with minimal configuration.
|
||||||
These features work both when Gradle is executed via `setup-gradle` and for any Gradle execution in subsequent steps.
|
These features work both when Gradle is executed via `setup-gradle` and for any Gradle execution in subsequent steps.
|
||||||
|
|
||||||
## Use the action to setup Gradle
|
## General usage
|
||||||
|
|
||||||
The recommended way to use `setup-gradle` is in an initial "Setup Gradle" step, with subsequent steps invoking Gradle directly with a `run` step. This makes the action minimally invasive, and allows a workflow to configure and execute a Gradle execution in any way.
|
|
||||||
|
|
||||||
The `setup-gradle` action works by configuring environment variables and by adding a set of Gradle init-scripts to the Gradle User Home. These will apply to all Gradle executions on the runner, no matter how Gradle is invoked.
|
The `setup-gradle` action works by configuring environment variables and by adding a set of Gradle init-scripts to the Gradle User Home. These will apply to all Gradle executions on the runner, no matter how Gradle is invoked.
|
||||||
This means that if you have an existing workflow that executes Gradle with a `run` step, you can add an initial "Setup Gradle" Step to benefit from caching, build-scan capture and other features of this action.
|
This means that if you have an existing workflow that executes Gradle with a `run` step, you can add an initial "Setup Gradle" Step to benefit from caching, build-scan capture and other features of this action.
|
||||||
|
|
Loading…
Reference in a new issue