Skip to content

Commit

Permalink
doc to address #187 and #246 (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
shengc authored and lihaoyi committed Mar 20, 2018
1 parent 1c507ef commit 1a7a593
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/pages/2 - Configuring Mill.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a7a593

Please sign in to comment.