4

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?

Will
  • 24,082
  • 14
  • 97
  • 108
centic
  • 15,565
  • 9
  • 68
  • 125

0 Answers0