diff --git a/notes/1.0.0.markdown b/notes/1.0.0.markdown index 4dee0c945..789b9bc4e 100644 --- a/notes/1.0.0.markdown +++ b/notes/1.0.0.markdown @@ -11,6 +11,7 @@ This is the beta-2 release of sbt 1.0. The Scala Center is working with Lightbend to provide [an automatic migration tool][sbt-migration-rewrites]. - sbt 1.0 renames `Global` as scope component to `Zero` to disambiguate from `GlobalScope`. [@eed3si9n][@eed3si9n] +- sbt 1.0 uses `ConfigRef` in places where `String` was used to reference configuration, such as `update.value.configuration(...)`. Pass in `Configuration`, which implicitly converts to `ConfigRef`. #### Fixes diff --git a/sbt/src/sbt-test/actions/external-doc/build.sbt b/sbt/src/sbt-test/actions/external-doc/build.sbt index 1cabf1333..80ead271f 100644 --- a/sbt/src/sbt-test/actions/external-doc/build.sbt +++ b/sbt/src/sbt-test/actions/external-doc/build.sbt @@ -31,7 +31,7 @@ val checkApiMappings = taskKey[Unit]("Verifies that the API mappings are collect def expectedMappings = Def.task { val version = scalaVersion.value val binVersion = scalaBinaryVersion.value - val ms = update.value.configuration(Compile.name).get.modules.flatMap { mod => + val ms = update.value.configuration(Compile).get.modules.flatMap { mod => mod.artifacts.flatMap { case (a,f) => val n = a.name.stripSuffix("_" + binVersion) n match {