From 1a7a5938525f3999e3a9b4676d35f488eaab9253 Mon Sep 17 00:00:00 2001 From: Sheng Chen Date: Mon, 19 Mar 2018 23:24:24 -0400 Subject: doc to address #187 and #246 (#248) --- docs/pages/2 - Configuring Mill.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 -- cgit v1.2.3