mirror of https://github.com/sbt/sbt.git
We want the user to be able to invalidate the classloader cache in the event that it somehow gets in a bad state. The cache is, however, defined in multiple configurations, so there are in fact many ClassLoaderCache instances that are managed by sbt. To make this sane, I add a global cache that is keyed by a TaskKey[_] and can return arbitrary data back. Invalidating all of the ClassLoaderCache instances is then as straightforward as just replacing the TaskRepository instance. I also went ahead and unified the management of the global file tree repository. Instead of having to specifically clear the file tree repository or the classloader cache, the user can now invalidate both with the new clearCaches command. |
||
|---|---|---|
| .. | ||
| src | ||
| NOTICE | ||