Follow the Freedesktop XDG base directory standard (in Linux)

On Linux, Gradle currently creates a $HOME/.gradle/ (or $HOME/.gradle-kotlin-dsl/) folder in the user's home directory. Most applications/programs don't create a folder in the user's home directory anymore, but instead use the Freedesktop XDG standard – found here: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html.

Using this standard:

  • $XDG_CACHE_HOME says "temporal/non-essential" files go to $HOME/.cache/
  • $XDG_CONFIG_HOME says "configuration files" go to $HOME/.config/
  • $XDG_DATA_HOME says "data files" go to $HOME/.local/share/

This is just a request to consider using this standard. It makes a lot of sense; it is easy for the user to understand, makes it easier to backup / locate / restore / manage / clear user's data, and creates less clutter in the user's home directory.

Thanks in advance...and thanks so much for everyone's hard work on this – it's amazing!