Fix `gradlew` execution for non-standard systems
On older Solaris versions and other systems where `/bin/sh` is not
a POSIX-compliant shell, the shell syntax used by the wrapper
script fails on certain constructs.
Fix those cases where the wrapper script was doing some things not
supported on the older non-POSIX shells: using backticks instead
of `$()`, changing the syntax of the `case` statement, and using
`expr` instead of arithmetic expansion.
08 Sep 17 01c8f438fefb8cc4eecc908e4dfcd2db387289bf
Increase memory for the daemon
The Gradle build needs more than 1G for some more demanding tasks
like a parallel `quickCheck`.
This change also reduces the client VM memory to something reasonable.
It was set to 2G before because we were running the build in the client
VM on CI. Instead we will now be forking single-use daemons on CI, which
only adds ~500ms per build and interoperates better with the memory being
defined in gradle.properties.
23 May 17 bc5ce52ec1a8435b53dca9a5f3c1fbac624d8547