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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.