- Parent publication
- Bitrise Build Cache
- Build Cache for Gradle
- Configuring the Build Cache for Gradle in the Bitrise CI environment
Configuring the Build Cache for Gradle in the Bitrise CI environment
In the Bitrise CI environment, you only need our official Step to use the Bitrise Build Cache for your Gradle builds.
If you want to use the Bitrise Build Cache in your local builds, you need to first activate it in our CI environment.
Workflow Editor
bitrise.yml
-
Log in to Bitrise and select Bitrise CI on the left, then select your project.
-
Click the Workflows button on the main page.
-
Add the Build Cache for Gradle Step to your Workflow.
The Step should be before any Step that executes Gradle tasks, such as Gradle Runner or Android Build.
-
Open the
bitrise.yml
file and add theactivate-build-cache-for-gradle
Step to your Workflow.The Step should be before any Step that executes Gradle tasks, such as
gradle-runner
orandroid-build
.your-workflow: steps: - git-clone@8: {} - activate-build-cache-for-gradle:
A Step is a block of script execution that encapsulates a build task on Bitrise: the code to perform that task, the inputs and parameters you can define for the task, and the outputs the task generates.