Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
661 views
in Technique[技术] by (71.8m points)

android - .gradle retains multiple copies of Gradle distributions

I'm using the Gradle wrapper to build various projects and noticed that my .gradle directory now contains multiple copies of each Gradle distribution. Each copy is in a unique subdirectory as shown:

enter image description here

This has happened with every version of Gradle that I have under .gradle, up through gradle-2.2.1-all. Why do these copies exist and how are they selected by the Gradle wrapper?

The only evidence I've found is the Gradle documentation for distributionUrl:

The wrapper downloads a certain distribution only once and caches it.

These subdirectories may be a hash computed from the distributionUrl in gradle-wrapper.properties. http and https variants of the URL could contribute up to two copies, which is the number of copies that most of my distributions have. That doesn't explain the third copy in gradle-1.12-all though.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...