diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-03-19 22:04:31 -0700 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-03-19 22:04:31 -0700 |
commit | 4fea16eaf227a4b0bb729e9f1ab7b45ed0d0a0f0 (patch) | |
tree | 400fee3a4b4b879510a930e2fbc6109aeebd7ab1 | |
parent | 4263195436228ab5e4e781c1b1ec3090add59e35 (diff) | |
parent | 1a7a5938525f3999e3a9b4676d35f488eaab9253 (diff) | |
download | mill-4fea16eaf227a4b0bb729e9f1ab7b45ed0d0a0f0.tar.gz mill-4fea16eaf227a4b0bb729e9f1ab7b45ed0d0a0f0.tar.bz2 mill-4fea16eaf227a4b0bb729e9f1ab7b45ed0d0a0f0.zip |
Merge branch 'master' of github.com:lihaoyi/mill
-rw-r--r-- | docs/pages/2 - Configuring Mill.md | 18 |
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 |