Set JVM memory parameters for gradle daemon (GRADLE-1240)

Noticed that GRADLE-1240 was resolved last week, but can’t seem to find any docs on how to set the max heap ( or other params ) for the JVM used by the daemon.

Our usecase is for uploading a ~1G artifact which currently always fails with a Java heap space error.

See Daemon properties in the user guide.