mirror of https://github.com/sbt/sbt.git
Fixes https://github.com/sbt/sbt/issues/6102 https://github.com/sbt/sbt/pull/6026 changed the implementation of remote cache to NOT use dependency resolution (Coursier), and directly use Ivy resolver for efficiency. This was good, but when I made the change, I've changed the cache directory to be `crossTarget.value / "remote-cache"`. This was ok for local testing purpose, but not great for real usage since we don't want the cache to be wiped out either in the CI machines or on a local laptop. This adds a new Global key called `localCacheDirectory`. Similar to Coursier cache, this is meant to be shared across all builds running on a machine. Also similar to Coursier cache this will try to follow the operating system specifc caching directory. ### localCacheDirectory location - Environment variable: `SBT_LOCAL_CACHE` - System property: `sbt.global.localcache` - Windows: %LOCALAPPDATA%\sbt\v1 - macOS: $HOME/Library/Caches/sbt/v1 - Linux: $HOME/.cache/sbt/v1 |
||
|---|---|---|
| .. | ||
| src | ||
| NOTICE | ||