Monday, November 23, 2015

How to refresh a snapshot dependency in Gradle

To refresh a snapshot dependency in Gradle, add the following to `build.gradle`:

configurations.all {
    resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}

Reference:
https://discuss.gradle.org/t/how-to-get-gradle-to-download-newer-snapshots-to-gradle-cache-when-using-an-ivy-repository/7344

No comments:

Post a Comment