Skip to content

Instantly share code, notes, and snippets.

@act262
Last active February 1, 2021 02:22
Show Gist options
  • Save act262/eab724918dd3b79a69274db65401d35e to your computer and use it in GitHub Desktop.
Save act262/eab724918dd3b79a69274db65401d35e to your computer and use it in GitHub Desktop.
gradle distributionUrl
// 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