icon

Activate Gradle Mirrors

Activates Bitrise repository mirrors for subsequent Gradle builds in the workflow

This step installs a Gradle init script that redirects repository requests to Bitrise-hosted mirrors for faster, more reliable dependency resolution in subsequent Gradle invocations.

The step is gated by the BITRISE_MAVENCENTRAL_PROXY_ENABLED environment variable and only activates when run in a Bitrise datacenter that has a mirror deployment. In every other case it logs an info message and exits successfully.

Similar steps

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

Generates Gradle Wrapper if it doesn't already exist

Restores Gradle caches. This Step needs to be used in combination with Save Gradle Cache.

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