diff --git a/src/reference/01-General-Info/90-Changes/45-Migrating-from-sbt-0.13.x.md b/src/reference/01-General-Info/90-Changes/45-Migrating-from-sbt-0.13.x.md index c71faf7ee..2d708f31e 100644 --- a/src/reference/01-General-Info/90-Changes/45-Migrating-from-sbt-0.13.x.md +++ b/src/reference/01-General-Info/90-Changes/45-Migrating-from-sbt-0.13.x.md @@ -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. diff --git a/src/reference/02-DetailTopics/03-Dependency-Management/03-Library-Management.md b/src/reference/02-DetailTopics/03-Dependency-Management/03-Library-Management.md index 32cf2ce7f..b92253d51 100644 --- a/src/reference/02-DetailTopics/03-Dependency-Management/03-Library-Management.md +++ b/src/reference/02-DetailTopics/03-Dependency-Management/03-Library-Management.md @@ -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