centic
centic

Reputation: 15890

How to set system property for Gradle Daemon

I would like to set a JVM system property for the Gradle daemon process.

I tried the following in ~/.gradle/gradle.properties:

org.gradle.daemon=true
org.gradle.jvmargs=-Djava.net.preferIPv4Stack=true

It seems org.gradle.jvmargs mentioned here does only take effect for certain options, e.g. -Xmx takes effect in the daemon. The daemon-doc does not really go into detail about this as well.

What is the best way to get the gradle daemon started with a specific system property?

Upvotes: 4

Views: 991

Answers (0)

Related Questions