Move Gradle Home

Posted by in Software

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 πŸ™


A little experiment: If you find this post and ad below useful, please check the ad out πŸ™‚