Commit 017eb3e
committed
build: Add dirty-money plugin for cleaning .ivy2 caches
The dirty-money plugin has been used by the Scala Native project build
for two years or so. It has proven itself useful to those of us
who do publishLocal a lot. It saves time & errors.
The plugin allows one to selectively clean .ivy2 caches, both global
and, especially, local of artifacts. This helps ensure that misleading
stale artifacts are not left lying around.
No documentation impact. Someday there will/may be a brief Contributors.md
guide.
Tested manually:
1) Safety
Using this PR, the following sequence completed successfully:
"clean ; cleanCache; cleanLocal; publishLocal"
The prior practice of manually removing the
.ivy2/local/dev.whaling directory tree and then doing
a "publishLocal" also executed as previously.
2) Efficacy
Using this PR, the global & local caches, as selected, are
emptied. This can be shown by a sequence of:
manually remove the .ivy2/local/dev.whaling directory tree
show cleanLocalFiles # should be empty
publishLocal
show cleanLocalFiles # should show files
cleanLocal
show cleanLocalFiles # should now be empty files
Using this PR, the global & local caches, as selected, are
A corresponding sequence works for showing and cleaning the
global cache.1 parent dd95090 commit 017eb3e
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
0 commit comments