Gist: Gradle/ Invalidate Dependency Cache

If you are using Gradle, you probably know that Gradle use a binary metadata chache to store various aspects of dependency resolution (see following gradle doc ).

There might be a point when you would like to invalidate cache for the depedencies. Easiest approach to do it is to invoke following command:

gradle --refresh-dependencies

It in essence state gradle to ignore all local records of metadata cache and perform a dynamic version recalculation, module refresh and relevant artifact download.