With Maven
, we can achieve the similar effect of invalidating local dependency cache and download artifacts from repository by using following command.
mvn -U
With Maven
, we can achieve the similar effect of invalidating local dependency cache and download artifacts from repository by using following command.
mvn -U
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.