Preparation
Gradle
Find the files gradle/wrapper
under the directory in your projectgradle-wrapper.properties
Tencent Cloud
Add the binary download address of Tencent Cloud
Modify gradle-wrapper.properties
the download address of distributionUrl in the file
distributionUrl=https://mirrors.tencent.com/gradle/gradle-{version}-bin.zip
Ali Cloud
Add the binary download address of Alibaba Cloud
Modify the download address gradle-wrapper.properties
in the filedistributionUrl
distributionUrl=https://mirrors.aliyun.com/gradle/gradle-{version}-bin.zip
at last
Save and rebuild the project
Save gradle-wrapper.properties
the file, and rebuild your Gradle
project. Gradle
The binaries will be downloaded from Alibaba Cloud's servers.
Note that the version number of will replace the placeholder Gradle
in the above code . {version}
So if you're using Gradle
version 6.7.1, Gradle
the binaries will be downloaded from:
https://mirrors.aliyun.com/gradle/gradle-6.7.1-bin.zip