image: java:8 pipelines: default: - step: script: # Modify the commands below to build your repository. - bash ./gradlew --version - bash ./gradlew build
Hi,
I' wondering how I can reduce the build time for a gradle based project.
On my PC Gradle finished the build in 5 seconds while it currently takes on bitbucket pipelines 2 minutes because Gradle has to do a complete setup each time it builds instead of caching the required data.
Hi,
We support dependency caching.
You can add
caches:
- gradle
to the step in your bitbucket-pipelines.yml.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.