Skip to content

Commit 85720ee

Browse files
committed
[Java] Upgrade to Gradle 3.2.
1 parent a4df03d commit 85720ee

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def projectPom = {
8686
}
8787

8888
task wrapper(type: Wrapper) {
89-
gradleVersion = '3.1'
89+
gradleVersion = '3.2'
9090
}
9191

9292
configurations {

gradle/wrapper/gradle-wrapper.jar

1.27 KB
Binary file not shown.
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Sat Sep 24 20:31:48 BST 2016
1+
#Wed Nov 16 21:37:04 GMT 2016
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.1-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.2-bin.zip

gradlew

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env bash
1+
#!/usr/bin/env sh
22

33
##############################################################################
44
##
@@ -154,16 +154,18 @@ if $cygwin ; then
154154
esac
155155
fi
156156

157-
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158-
function splitJvmOpts() {
159-
JVM_OPTS=("$@")
160-
}
161-
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162-
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
157+
# Escape application args
158+
for s in "${@}" ; do
159+
s=\"$s\"
160+
APP_ARGS=$APP_ARGS" "$s
161+
done
162+
163+
# Collect all arguments for the java command, following the shell quoting and substitution rules
164+
eval set -- "$DEFAULT_JVM_OPTS" "$JAVA_OPTS" "$GRADLE_OPTS" "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
163165

164166
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
165-
if [[ "$(uname)" == "Darwin" ]] && [[ "$HOME" == "$PWD" ]]; then
167+
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
166168
cd "$(dirname "$0")"
167169
fi
168170

169-
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
171+
exec "$JAVACMD" "$@"

0 commit comments

Comments
 (0)