Circle ci downloads dependencies every time even with cache enabled

Every time Circle Ci 2 run a build, Gradle downloads the dependencies even if the cache is enabled.

Does anyone have a clue on this on how to prevent it from downloading it each time? Thanks

full config file : https://gist.github.com/alouanemed/2b8ce7a154663ffd8b422f1b75748b4f

Have a look at the CircleCI cache system in the docs. You define a key, which is usually a checksum of your dependencies specification file, and you specify what path is to be cached.

I don’t use Gradle, but this should download everything in situ such that when you do the next install, Gradle connects to its repo but realises there is nothing to do, and exits early.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.