Move Gradle Home
1 min read

Move Gradle Home

Move Gradle Home

I'm having some space constraints and I need to move as much as possible to a non-backed-up place. Gradle home (the .gradle directory) has 2.23GB on my computer. A lot, so it must go.

The procedure is simple. Just create an environment variable named GRADLE_USER_HOME:


Now all your gradle stuff (e.g .caches) will be dumped there.

IMPORTANT! If you have already a with stuff, don't forget to copy it to the new location! Otherwise, all your niceties will be lost :(