Skip to content

Commit

Permalink
Merge pull request #707 from jiminhsieh/drop-withDefaultResolvers
Browse files Browse the repository at this point in the history
`withDefaultResolvers` was replaced by `combineDefaultResolvers`
  • Loading branch information
eed3si9n authored Jul 31, 2018
2 parents 86b0a5e + 3d72e71 commit 5be5c4c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -306,3 +306,19 @@ def scalaXml = Def.setting {

**Note**: `Build` traits is deprecated, but you can still use `project/*.scala` file to organize your build and/or define ad-hoc plugins. See [Organizing the build][Organizing-Build].

### Migrating from Resolver.withDefaultResolvers

In 0.13.x, you use other repositories instead of the Maven Central repository:

```scala
externalResolvers := Resolver.withDefaultResolvers(resolvers.value, mavenCentral = false)
```

After 1.x, `withDefaultResolvers` was renamed to `combineDefaultResolvers`. In the meantime, one of the parameters, `userResolvers`, was changed to `Vector` instead of `Seq`.

* You can use `toVector` to help migration.

```scala
externalResolvers := Resolver.combineDefaultResolvers(resolvers.value.toVector, mavenCentral = false)
```
* You can use `Vector` directly too.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repos
To use the local repository, but not the Maven Central repository:

```scala
externalResolvers := Resolver.withDefaultResolvers(resolvers.value, mavenCentral = false)
externalResolvers := Resolver.combineDefaultResolvers(resolvers.value, mavenCentral = false)
```

##### Override all resolvers for all builds
Expand Down

0 comments on commit 5be5c4c

Please sign in to comment.