This is an automated email from the ASF dual-hosted git repository.
mbrohl pushed a commit to branch trunk
in repository
https://gitbox.apache.org/repos/asf/ofbiz-framework.gitThe following commit(s) were added to refs/heads/trunk by this push:
new e08bfa1 Fixed: Replace Bintray by a new place to upload the Gradle Wrapper (OFBIZ-12192)
e08bfa1 is described below
commit e08bfa17cb3cf72ad34f87e3492bbc90eeac885e
Author: Michael Brohl <
[hidden email]>
AuthorDate: Sat Mar 13 16:02:42 2021 +0100
Fixed: Replace Bintray by a new place to upload the Gradle Wrapper
(OFBIZ-12192)
Changes script to use the proper Gradle wrapper version. Changes the
download url from Bintray to Gradle GitHub repository and removes the
backup link. Adjusts the sha checksums accordingly.
The Gradle download link pulls a gradle-wrapper.properties file which
references services.gradle.org/distributions/gradle-6.5-bin.zip instead
of a 6.5.1 distribution. This was left this way for consistency.
---
gradle/init-gradle-wrapper.sh | 14 +++++---------
gradle/wrapper/gradle-wrapper.properties | 2 +-
2 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/gradle/init-gradle-wrapper.sh b/gradle/init-gradle-wrapper.sh
index 40641a5..a8c2d34 100755
--- a/gradle/init-gradle-wrapper.sh
+++ b/gradle/init-gradle-wrapper.sh
@@ -22,13 +22,12 @@ GRADLE_OFBIZ_PATH="$OFBIZ_HOME/gradle"
GRADLE_WRAPPER_OFBIZ_PATH="$GRADLE_OFBIZ_PATH/wrapper"
# version and uri to download the wrapper
-RELEASE="5.0.0"
-GRADLE_WRAPPER_URI="
https://dl.bintray.com/apacheofbiz/GradleWrapper/v$RELEASE/"
-GRADLE_WRAPPER_URI_BACKUP="
https://github.com/gradle/gradle/raw/v$RELEASE/gradle/wrapper/"
+RELEASE="6.5.1"
+GRADLE_WRAPPER_URI="
https://github.com/gradle/gradle/raw/v$RELEASE/gradle/wrapper/"
# checksum to verify the downloaded file
-SHASUM_GRADLE_WRAPPER_FILES="1d23286bcb9e7d3debff18c1b892b9dbb9a4ec6c gradle/wrapper/gradle-wrapper.jar
-f9c2ad227ef1fe774cb0e141abfc431b05fc9fd4 gradle/wrapper/gradle-wrapper.properties
+SHASUM_GRADLE_WRAPPER_FILES="33b0acb4572934fc1dd7d5880c65036724974e06 gradle/wrapper/gradle-wrapper.jar
+b76cfc82d574180f435b4bd9d4b0f29a3c32294b gradle/wrapper/gradle-wrapper.properties
67bc176bca816684cf5218570a931f57d5f2b423 gradlew"
GRADLE_WRAPPER_JAR="gradle-wrapper.jar"
@@ -55,12 +54,9 @@ downloadFile() {
return 1
}
-# Download the file from the main URI; if the download fails then use the backup URI
+# Download the file from the main URI
resolveFile() {
downloadFile $1 $GRADLE_WRAPPER_URI;
- if [ $? -eq 1 ]; then
- downloadFile $1 $GRADLE_WRAPPER_URI_BACKUP;
- fi
}
echo " === Prepare operation ===";
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index bb8b2fc..622ab64 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists