Categories

Oct 21, 2019 in Gradle
Q: How Do I Configure The Gradle Daemon To Speed Up Builds?

1 Answer

Oct 21, 2019

The Gradle daemon helps greatly in eliminating startup overhead. This feature may potentially be enabled by default in the future, but in the meantime, you need to instruct Gradle to launch the daemon process. This can be achieved by passing the –daemon flag to Gradle at the command line, by exporting a GRADLE_OPTS environment variable that includes -Dorg.gradle.daemon=true, or by adding org.gradle.daemon=true to the Gradle.properties file in your Gradle user home directory.

If you are building against JDK 9 and using the Gradle daemon, you may encounter an Unrecognized VM option error which halts the build. To avoid this error, you can add org.gradle.jvmargs=-XX:MaxMetaspaceSize=1024m -Xmx1024m to the Gradle.properties file in your Gradle user home directory. See also GRADLE-3256 for details.

Click here to read more about Gradle
Click here to read more about Insurance

Related questions

Madanswer
Apr 14 in Gradle
Jan 31 in Gradle
Aug 29, 2019 in Azure
...