1. Download the gradle binary from the following address:

    https://services.gradle.org/distributions/

    For example gradle-7.4-all.zip.

  2. Place the downloaded gradle binary to the gradle/wrapper directory of the gradle project.

  3. Update the wrapper configuration (i.e. gradle/wrapper/gradle-wrapper.properties) like the following:

    If you've downloaded gradle-7.4-all.zip binary from step 1.

    distributionBase=PROJECT
    distributionPath=wrapper/dists
    distributionUrl=gradle-7.4-all.zip
    zipStoreBase=PROJECT
    zipStorePath=wrapper/dists