Created
November 1, 2020 11:48
-
-
Save Palatis/9eebbe30a14b6eaef9ca122788c778ab to your computer and use it in GitHub Desktop.
gradle ramdisk cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.gradle.daemon = true | |
org.gradle.caching = true | |
android.buildCacheDir = Z:/gradle/build-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def buildDir = 'Z:/gradle/build' | |
if (!buildDir?.trim()) | |
buildDir = "build" | |
def configProject(p, buildDir) { | |
p.buildDir = "${buildDir}/${p.name}" | |
p.subprojects { s -> configProject(s, "${p.buildDir}") } | |
} | |
gradle.projectsLoaded { | |
if (ext.has("group")) | |
buildDir += "/${ext.group}" | |
configProject(rootProject, buildDir) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
put the files under
~/.gradle/
where
Z:/
points to your ramdisk partition.tmpfs
partition.