Running Gradle Builds in RAM

January 3, 2016 JVM

If you have lots of RAM and a slow HDD, this piece of advice will show you how to make builds finish much faster.

Set buildDir property to a directory mounted to RAM, such as /tmp. There are several ways of doing this:

a) In project-level build.gradle

allprojects {

b) In


c) Via command-line arguments



comments powered by Disqus