To avoid OOM exceptions we specify the following in our gradle.properties when running the daemon:
org.gradle.jvmargs=-XX:MaxPermSize=256m -Xms256m -Xmx512m
However when we don't want to run the daemon (f.e. because there's a plugin doing System.console stuff which doesn't work in daemon-style) we should specify --no-daemon or put or.gradle.daemon=false in our gradle.properties.
However when doing either of the above settings a daemon is still forked:
Basically there's no way to not run gradle as a daemon when there's a org.gradle.jvmargs specified. This is quite annoying.