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

▼ Show 1 Answer

0 votes

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 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 file in your Gradle user home directory. See also GRADLE-3256 for details.

Learn More with Madanswer

Related questions

0 votes
asked Mar 5, 2020 in Gradle by rahuljain1