diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-17 11:50:20 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-17 11:53:07 -0800 |
commit | 92edcae5094e52783f825021e4172a6b072300e0 (patch) | |
tree | 8da5d9e01a9703601ef13c8ee5478501251b6836 /docs/pages/1 - Intro to Mill.md | |
parent | 650ab9c937159cd31721e576f7174c8167f19a70 (diff) | |
download | mill-92edcae5094e52783f825021e4172a6b072300e0.tar.gz mill-92edcae5094e52783f825021e4172a6b072300e0.tar.bz2 mill-92edcae5094e52783f825021e4172a6b072300e0.zip |
Include example zips in docs
Diffstat (limited to 'docs/pages/1 - Intro to Mill.md')
-rw-r--r-- | docs/pages/1 - Intro to Mill.md | 11 |
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: |