diff --git a/core/src/main/scala/com/lightbend/paradox/markdown/Directive.scala b/core/src/main/scala/com/lightbend/paradox/markdown/Directive.scala index 3ebc10ea..40b5e8de 100644 --- a/core/src/main/scala/com/lightbend/paradox/markdown/Directive.scala +++ b/core/src/main/scala/com/lightbend/paradox/markdown/Directive.scala @@ -1106,9 +1106,9 @@ case class RepositoryDirective(ctx: Writer.Context) extends LeafBlockDirective(" } val repoStrings = repos match { - case Seq(r) => s"repositories += $r\n" + case Seq(r) => s"resolvers += $r\n" case rs => - Seq("repositories ++= Seq(\n", rs.map(a => s" $a").mkString(",\n"), "\n)\n").mkString + Seq("resolvers ++= Seq(\n", rs.map(a => s" $a").mkString(",\n"), "\n)\n").mkString } ("scala", repoStrings) diff --git a/tests/src/test/scala/com/lightbend/paradox/markdown/RepositoryDirectiveSpec.scala b/tests/src/test/scala/com/lightbend/paradox/markdown/RepositoryDirectiveSpec.scala index 5f074d7a..1218adf3 100644 --- a/tests/src/test/scala/com/lightbend/paradox/markdown/RepositoryDirectiveSpec.scala +++ b/tests/src/test/scala/com/lightbend/paradox/markdown/RepositoryDirectiveSpec.scala @@ -42,7 +42,7 @@ class RepositoryDirectiveSpec extends MarkdownBaseSpec { |
|
       |
-      |repositories += "Company repository".at("http://jars.acme.com")
+      |resolvers += "Company repository".at("http://jars.acme.com")
       |
       |
|
@@ -92,7 +92,7 @@ class RepositoryDirectiveSpec extends MarkdownBaseSpec { |
|
          |
-         |repositories ++= Seq(
+         |resolvers ++= Seq(
          |  "Company repository".at("http://jars.acme.com"),
          |  "Company repository 2".at("http://uberjars.acme.com")
          |)