icon

Save Gradle configuration cache

Caches the Gradle configuration cache folder used by Gradle. Uses the Bitrise Build Cache infrastructure.

This step caches the Gradle configuration cache folder along with the necessary metadata to speed up future builds. The cache is stored within the Bitrise Build Cache infrastructure.

For more information on how configuration caching works, refer to the Gradle user guide.

Unless specified otherwise, the current directory is assumed to be the project directory, and therefore the ./gradle/configuration-cache directory will be saved.

IMPORTANT NOTES:

  • You must have an active Bitrise Build Cache Trial or Subscription for your workspace to use this step.
  • You also need to set up the encryption key GRADLE_ENCRYPTION_KEY in Bitrise Secrets by using the result from running openssl rand -base64 16.
  • Setting the encryption key is supported only from Gradle version 8.6 onwards, so your project must be using Gradle 8.6 or higher.

Similar steps

Restores the Gradle configuration cache folder used by Gradle. Uses the Bitrise Build Cache infrastructure.

Saves Gradle caches. This Step needs to be used in combination with Restore Gradle Cache.

Activates Bitrise Remote Build Cache add-on for subsequent Gradle builds in the workflow

Saves items to the cache based on key-value pairs. This Step needs to be used in combination with Multikey Restore Cache or Restore Cache.