buildship icon indicating copy to clipboard operation
buildship copied to clipboard

Move `.cache\tooling\gradle\versions.json` to a folder in Gradle's or Eclipse's

Open altrisi opened this issue 2 years ago • 2 comments

In my case, the entire .cache folder is only used for that single file, and it's annoying to have it there knowing it's only used for that.

I'd expect Buildship to instead use a folder instead inside Gradle's .gradle folder or at least in some Eclipse folder. Or maybe the system's temp folder, given the file is only valid for a day.

The file path is decided here: https://github.com/eclipse/buildship/blob/35d01caad3ab023fdd9fdf4a1b9e9c738bff7fd0/org.eclipse.buildship.core/src/main/java/org/eclipse/buildship/core/internal/util/gradle/PublishedGradleVersions.java#L224

altrisi avatar Jun 09 '22 18:06 altrisi

You can set the XDG_CACHE_HOME environmental variable for Eclipse to move the versions.json file to a better location.

donat avatar Jun 10 '22 07:06 donat

Opened a PR for this

altrisi avatar Nov 26 '22 12:11 altrisi