summaryrefslogtreecommitdiff
path: root/docs/pages/1 - Intro to Mill.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/pages/1 - Intro to Mill.md')
-rw-r--r--docs/pages/1 - Intro to Mill.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/pages/1 - Intro to Mill.md b/docs/pages/1 - Intro to Mill.md
index 32fca7e8..74c12a2e 100644
--- a/docs/pages/1 - Intro to Mill.md
+++ b/docs/pages/1 - Intro to Mill.md
@@ -23,6 +23,7 @@ sudo curl -L -o /usr/local/bin/mill https://github.com/lihaoyi/mill/releases/dow
The simplest Mill build for a Scala project looks as follows:
```scala
+// build.sc
import mill._
import mill.scalalib._
@@ -45,6 +46,10 @@ out/
...
```
+You can download an example project with this layout here:
+
+- [Example 1](example-1.zip)
+
The source code for this module would live in the `foo/src/` folder, matching
the name you assigned to the module. Output for this module (compiled files,
resolved dependency lists, ...) would live in `out/foo/`.
@@ -70,6 +75,7 @@ time.
## Multiple Modules
```scala
+// build.sc
import mill._
import mill.scalalib._
object foo extends ScalaModule {
@@ -126,6 +132,7 @@ and re-compiled as necessary when source code in each module changes.
Modules can also be nested:
```scala
+// build.sc
import mill._
import mill.scalalib._
object foo extends ScalaModule {
@@ -418,6 +425,10 @@ object foo extends PublishModule{
}
```
+You can download an example project with this layout here:
+
+- [Example 2](example-2.zip)
+
Which you can then publish using the `mill foo.publish` command, which takes
your sonatype credentials (e.g. `lihaoyi:foobarbaz`) and GPG password as inputs: