Skip to content

Commit 22d0a07

Browse files
PluiexoPluiexo
authored andcommitted
Fix gradle
1 parent f47fe32 commit 22d0a07

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip
44
networkTimeout=10000
5-
validateDistributionUrl=true
65
zipStoreBase=GRADLE_USER_HOME
76
zipStorePath=wrapper/dists

gradlew

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ done
8585
APP_BASE_NAME=${0##*/}
8686
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
8787

88+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
90+
8891
# Use the maximum available, or set MAX_FD != -1 to use that value.
8992
MAX_FD=maximum
9093

@@ -130,29 +133,26 @@ location of your Java installation."
130133
fi
131134
else
132135
JAVACMD=java
133-
if ! command -v java >/dev/null 2>&1
134-
then
135-
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
136+
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
136137
137138
Please set the JAVA_HOME variable in your environment to match the
138139
location of your Java installation."
139-
fi
140140
fi
141141

142142
# Increase the maximum file descriptors if we can.
143143
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144144
case $MAX_FD in #(
145145
max*)
146146
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147-
# shellcheck disable=SC3045
147+
# shellcheck disable=SC3045
148148
MAX_FD=$( ulimit -H -n ) ||
149149
warn "Could not query maximum file descriptor limit"
150150
esac
151151
case $MAX_FD in #(
152152
'' | soft) :;; #(
153153
*)
154154
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155-
# shellcheck disable=SC3045
155+
# shellcheck disable=SC3045
156156
ulimit -n "$MAX_FD" ||
157157
warn "Could not set maximum file descriptor limit to $MAX_FD"
158158
esac
@@ -197,10 +197,6 @@ if "$cygwin" || "$msys" ; then
197197
done
198198
fi
199199

200-
201-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
202-
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
203-
204200
# Collect all arguments for the java command;
205201
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
206202
# shell script including quotes and variable substitutions, so put them in

0 commit comments

Comments
 (0)