GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||
GeezerVison is showing github.com — Allow setting the local P2 cache dir in the Spotless Gradle plugin by bric3 · Pull Request #2944 · diffplug/spotless Conversation
|
|
Maybe the Gradle plug-in could also set a more sensible default? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Somewhere inside |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I hesitated to do that, as it's a breaking change. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
IMHO, if we just break a potentially existing cache, it's not so much of an issue. But maybe you're right. 🤷🏼♂️ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Actually I slept on it, and I kind of agree with you know, it could be considered a bug. And as a matter of fact, under the hood spotless uses a "fake" eclipse, and there's a mechanism that is supposedly handling Gradle, but it only works if the I suppose there are various reasons why it's like that in solstice. But spotless knows where it is run so it should provide sensible defaults. I'm commiting someting in that regard. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Set Gradle's default P2 cache under Gradle user home and Maven's under the local repository, while keeping explicit cacheDirectory overrides for both plugins. Solstice uses the maven m2 directory unless GRADLE_USER_HOME is set https://github.com/equodev/equo-ide/blob/main/solstice/src/main/java/dev/equo/solstice/p2/CacheLocations.java#L80-L104
|
It's been a long time, but I recall the Solstice cache directory being changed because somebody felt strongly it was in the wrong place before. I think the point of I'm okay with changing it, but it needs to be clearly laid out in the changelog "Eclipse dependencies were cached at X by default, now they are cached at Y by default" |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
That might have been me actually. And I still think that |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yeah, I think it totally makes sense on maven. But on gradle builds it doesn't. It's a breaking change, but now that the cache directory is configurable, users can easily revert to the path they want. That said I understand you might want to postpone the change. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm okay with this change. If you are both happy with it (@bric3 and @jochenberger) then I'm happy to merge. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I love it. 🙂 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm ok for it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.