Skip to content

Instantly share code, notes, and snippets.

@mikeslattery
Last active May 1, 2020 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeslattery/4985fa3bd54e74cc8813f3e3c9328a50 to your computer and use it in GitHub Desktop.
Save mikeslattery/4985fa3bd54e74cc8813f3e3c9328a50 to your computer and use it in GitHub Desktop.
Build gradle projects to RAM
// This goes in ~/.gradle/init.d/tmpfs.gradle
def ramdir='/tmp/gradle'
gradle.projectsLoaded {
rootProject.allprojects {
buildDir = "${ramdir}${project.path}/build"
//println "${project.name}.buildDir = ${buildDir}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment