Caching Maven

  1. Open your app on Bitrise.

  2. Go to the Workflow tab.

  3. Select a Workflow from the WORKFLOW dropdown menu.

  4. Insert the Cache:Pull step after the Git Clone but before the Android Build steps.

    Step version of the Cache:Pull Step

    Make sure that your step is version 1.0.0 or newer. With the older versions, you have to manually specify paths for caching.

  5. Insert the Bitrise.io Cache:Push Step to the very end of your Workflow.

  6. In the Cache paths input of the step, enter $HOME/.m2.

And you’re done!