diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/pages/5 - Modules.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/pages/5 - Modules.md b/docs/pages/5 - Modules.md index fa6260f3..973b93d1 100644 --- a/docs/pages/5 - Modules.md +++ b/docs/pages/5 - Modules.md @@ -52,12 +52,16 @@ This would make the following targets available from the command line - `mill show foo2.baz` - `mill show foo2.qux` -The built in `mill.scalalib` package uses this to define +The built-in `mill.scalalib` package uses this to define `mill.scalalib.ScalaModule`, `mill.scalalib.SbtModule` and `mill.scalalib.TestScalaModule`, all of which contain a set of "standard" operations such as `compile` `jar` or `assembly` that you may expect from a typical Scala module. +When defining your own module abstractions, in general you should use `trait`s +and not `class`es, except in the case of +[Cross Builds](http://www.lihaoyi.com/mill/page/cross-builds.html). + ## Overriding Targets ```scala |