buildship
buildship copied to clipboard
Move `.cache\tooling\gradle\versions.json` to a folder in Gradle's or Eclipse's
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
You can set the XDG_CACHE_HOME environmental variable for Eclipse to move the versions.json file to a better location.
Opened a PR for this