title: How to set system property for Gradle Daemon
body: <p>I would like to set a JVM system property for the Gradle daemon process.</p>
  
  <p>I tried the following in <code>~/.gradle/gradle.properties</code>:</p>
  
  <pre><code>org.gradle.daemon=true
  org.gradle.jvmargs=-Djava.net.preferIPv4Stack=true
  </code></pre>
  
  <p>It seems org.gradle.jvmargs mentioned <a href="https://docs.gradle.org/current/userguide/build_environment.html" rel="nofollow">here</a> does only take effect for certain options, e.g. <code>-Xmx</code> takes effect in the daemon. The <a href="https://docs.gradle.org/current/userguide/gradle_daemon.html" rel="nofollow">daemon-doc</a> does not really go into detail about this as well.</p>
  
  <p>What is the best way to get the gradle daemon started with a specific system property?</p>