summaryrefslogtreecommitdiff
path: root/docs/pages/2 - Configuring Mill.md
diff options
context:
space:
mode:
authorSheng Chen <shengcer@gmail.com>2018-03-19 23:24:24 -0400
committerLi Haoyi <haoyi.sg@gmail.com>2018-03-19 20:24:24 -0700
commit1a7a5938525f3999e3a9b4676d35f488eaab9253 (patch)
tree7285fbdfee32329bc70aa7c417ecd4bd0a5ddf03 /docs/pages/2 - Configuring Mill.md
parent1c507efbc4ce13ad39a056c4c77eb280f0b224e7 (diff)
downloadmill-1a7a5938525f3999e3a9b4676d35f488eaab9253.tar.gz
mill-1a7a5938525f3999e3a9b4676d35f488eaab9253.tar.bz2
mill-1a7a5938525f3999e3a9b4676d35f488eaab9253.zip
doc to address #187 and #246 (#248)
Diffstat (limited to 'docs/pages/2 - Configuring Mill.md')
-rw-r--r--docs/pages/2 - Configuring Mill.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/pages/2 - Configuring Mill.md b/docs/pages/2 - Configuring Mill.md
index 4d9894b2..4df4d5d4 100644
--- a/docs/pages/2 - Configuring Mill.md
+++ b/docs/pages/2 - Configuring Mill.md
@@ -71,6 +71,24 @@ def repositories = super.repositories ++ Seq(
)
```
+To add custom resolvers to the initial bootstrap of the build, you can create a
+custom `ScalaWorkerModule`, and override the `scalaWorker` method in your
+`ScalaModule` by pointing it to that custom object:
+
+```scala
+import coursier.maven.MavenRepository
+object CustomScalaWorkerModule extends ScalaWorkerModule {
+ def repositories() = super.repositories ++ Seq(
+ MavenRepository("https://oss.sonatype.org/content/repositories/releases")
+ )
+}
+
+object YourBuild extends ScalaModule {
+ def scalaWorker = CustomScalaWorkerModule
+ // ... rest of your build definitions
+}
+```
+
## Adding a Test Suite
```scala