Dotfiles are bad

Gradle currently places dotfiles in HOME. This should be changed to follow XDG Base Directory Specification (including storing wrappers in the cache directory), with an optional fallback to ~/.gradle for backwards compatibility.

See also.

What files are being placed in HOME?

~/.gradle is. Do note that this also means you can’t have a gradle project in your HOME.