The proper way to use gradle is to actually use the gradle.properties. It will be automatically read without using a self defined config slurper.
The gradle.properties adds additional convenient options e.g. regarding the VM options and parallel calculation or daemons