The definition of the function splitJvmOpts is using a hybrid definition, the bash version on our ubuntu machines fail on this, needing either “splitJvmOpts() {” or “function splitJvmOpts {”.
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules function splitJvmOpts() {
JVM_OPTS=("$@") } </code.