Last active
February 1, 2021 02:22
-
-
Save act262/eab724918dd3b79a69274db65401d35e to your computer and use it in GitHub Desktop.
gradle distributionUrl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add allprojects here | |
allprojects { | |
tasks.withType(Wrapper) { | |
// use default distributions url = https://services.gradle.org/distributions/ | |
gradleVersion = '6.6' // version | |
distributionType = Wrapper.DistributionType.BIN // bin or all | |
// or use direct distributionUrl and ./gradlew wrapper | |
// distributionUrl = 'https://mirrors.cloud.tencent.com/gradle/gradle-6.6-all.zip' | |
distributionUrl = "https://mirrors.cloud.tencent.com/gradle/gradle-${gradleVersion}-${distributionType.name().toLowerCase()}.zip" | |
// or ./gradlew wrapper --gradle-version=5.4.1 --distribution-type=bin | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment