Gradle wrapper ignores already installed distribution?

我的未来我决定 提交于 2019-12-12 02:25:02

问题


The gradle wrapper distributions are located on my machine under: C:\Users\Ruperto.gradle\wrapper\dists\gradle-2.10-all In this folder I already had 2 folder with long names (78v82fsf226usgvgh7q2ptcvif, a4w5fzrkeut1ox71xslb49gst) and now after running gradlew in the command line of Windows it downloaded the same version again and added a new folder to the above path, all of the 3 folders now have the same gradle version inside, same size also, why is this happening?


回答1:


Gradle Wrapper is downloaded from distribution URL.

If you do not specify the distribution URL, default URL will be used, e.g. https://services.gradle.org/distributions/.

Gradle Wrapper binary is always downloaded once per distribution URL, even if it is exactly the same binary file and it is stored in a directory that is basically hash of the distribution URL.



来源:https://stackoverflow.com/questions/37543641/gradle-wrapper-ignores-already-installed-distribution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!