File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =wrapper/dists
3- distributionSha256Sum =5625a0ae20fe000d9225d000b36909c7a0e0e8dda61c19b12da769add847c975
4- distributionUrl =https\://services.gradle.org/distributions/gradle-8.1.1 -all.zip
3+ distributionSha256Sum =bb09982fdf52718e4c7b25023d10df6d35a5fff969860bdf5a5bd27a3ab27a9e
4+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.3 -all.zip
55networkTimeout =10000
6+ validateDistributionUrl =true
67zipStoreBase =GRADLE_USER_HOME
78zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 8383# This is normally unused
8484# shellcheck disable=SC2034
8585APP_BASE_NAME=${0##*/ }
86- APP_HOME=$( cd " ${APP_HOME:- ./ } " && pwd -P ) || exit
86+ # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87+ APP_HOME=$( cd " ${APP_HOME:- ./ } " > /dev/null && pwd -P ) || exit
8788
8889# Use the maximum available, or set MAX_FD != -1 to use that value.
8990MAX_FD=maximum
@@ -130,10 +131,13 @@ location of your Java installation."
130131 fi
131132else
132133 JAVACMD=java
133- which java > /dev/null 2>&1 || die " ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
134+ if ! command -v java > /dev/null 2>&1
135+ then
136+ die " ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
134137
135138Please set the JAVA_HOME variable in your environment to match the
136139location of your Java installation."
140+ fi
137141fi
138142
139143# Increase the maximum file descriptors if we can.
You can’t perform that action at this time.
0 commit comments