diff options
author | Guillaume Galy <guilgaly@users.noreply.github.com> | 2018-05-16 06:19:47 +0200 |
---|---|---|
committer | Nikolay Tatarinov <5min4eq.unity@gmail.com> | 2018-05-16 07:19:47 +0300 |
commit | 730a40d0324c14adfeb3837604c4a65c8e1941b2 (patch) | |
tree | 66587b74d1ee5abba93cfa563dcab3e953d3104c /docs | |
parent | 032ae8b5138863c1523cf34a612ba1b19870713b (diff) | |
download | mill-730a40d0324c14adfeb3837604c4a65c8e1941b2.tar.gz mill-730a40d0324c14adfeb3837604c4a65c8e1941b2.tar.bz2 mill-730a40d0324c14adfeb3837604c4a65c8e1941b2.zip |
[WIP] Fixes #227; add `mill clean` (#315)
* Adding clean as a default task
* [WIP] Improve 'clean' paths resolution
* Improve clean targets resolution mechanism
* fix error on clean all
* update "clean all" to keep all 'out/mill-*' paths
* fix cross module resolution in clean task
* Add documentation for "clean" task
Diffstat (limited to 'docs')
-rw-r--r-- | docs/pages/1 - Intro to Mill.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/pages/1 - Intro to Mill.md b/docs/pages/1 - Intro to Mill.md index 5eab7141..f6854ba2 100644 --- a/docs/pages/1 - Intro to Mill.md +++ b/docs/pages/1 - Intro to Mill.md @@ -456,6 +456,26 @@ $ mill show foo.compileDepClasspath `show` is also useful for interacting with Mill from external tools, since the JSON it outputs is structured and easily parsed & manipulated. +### clean + +```bash +$ mill clean +``` + +`clean` deletes all the cached outputs of previously executed tasks. It can +apply to the entire project, entire modules, or specific tasks. + +```bash +mill clean # clean all outputs +mill clean foo # clean all outputs for module 'foo' (including nested modules) +mill clean foo.compile # only clean outputs for task 'compile' in module 'foo' +mill clean foo.{compile,run} +mill clean "foo.{compile,run}" +mill clean foo.compile foo.run +mill clean _.compile +mill clean __.compile +``` + ## IntelliJ Support Mill supports IntelliJ by default. Use `mill mill.scalalib.GenIdea/idea` to |