task wrapper(type: Wrapper) { gradleVersion = '4.10.2' distributionUrl = distributionUrl.replace("bin", "all") } code example
Example: DISTRIBUTION URL GRADLE
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip