Gradle download and cache itself

At the moment with Gradle 2.3 wraper downloads itself from a remote server if a new version is provided for a project. However can’t we store the download in a local folder cache, and reuse it if any other project requires it? Downloading takes up quite some time. :frowning:

Ideally we should avoid network operations as much as possible. And reuse as much as possible unless the user requests this explicitly (that is provides refresh dependencies or such flags)


The Gradle distribution is only downloaded by the wrapper once and cached in the GRADLE_USER_HOME/wrapper directory. It is only redownloaded if the distributionUrl changes.

1 Like

You’re right. Per packaging it will redownload (bin vs all) but I think that is acceptable.