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