Quickie: 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.

Advertisements

One thought on “Quickie: Gradle/ Invalidate Dependency Cache

  1. Pingback: Adil Akhter

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s