Rate This Document
Findability
Accuracy
Completeness
Readability

Failed to Download gradle-5.6-bin.zip

Symptom

When the /gradlew shadowJar command is executed, an error is reported indicating that the network access is invalid.

Key Process and Cause Analysis

Network access fails.

Conclusion and Solution

  1. Manually download the file to the current directory.
    wget https://services.gradle.org/distributions/gradle-5.6-bin.zip

  2. Modify the file.
    ./gradle/wrapper/gradle-wrapper.properties
  3. Change the value of distributionUrl to gradle-5.6-bin.zip in the local directory and run the following command again:
    ./gradlew shadowJar