0 votes
in Gradle by
How Do I Configure The Gradle Daemon To Speed Up Builds?

1 Answer

0 votes
by

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.

Related questions

0 votes
asked Jan 31, 2020 in Gradle by rahuljain1
0 votes
asked Oct 21, 2019 in Gradle by SakshiSharma
...