diff --git a/build.sbt b/build.sbt index 6efa24ea..f585a7e6 100644 --- a/build.sbt +++ b/build.sbt @@ -99,7 +99,7 @@ inThisBuild( ) ), testFrameworks := List(new TestFramework("munit.Framework")), - resolvers += Resolver.sonatypeRepo("public"), + resolvers ++= Resolver.sonatypeOssRepos("public"), // faster publishLocal: packageDoc / publishArtifact := "true" == System.getenv("CI"), packageSrc / publishArtifact := "true" == System.getenv("CI"), diff --git a/mdoc-sbt/src/main/scala/mdoc/DocusaurusPlugin.scala b/mdoc-sbt/src/main/scala/mdoc/DocusaurusPlugin.scala index 67857b10..75d6f047 100644 --- a/mdoc-sbt/src/main/scala/mdoc/DocusaurusPlugin.scala +++ b/mdoc-sbt/src/main/scala/mdoc/DocusaurusPlugin.scala @@ -124,7 +124,7 @@ object DocusaurusPlugin extends AutoPlugin { ).execute() }, docusaurusCreateSite := { - m.mdoc.in(Compile).toTask(" ").value + (Compile / m.mdoc).toTask(" ").value Process(List(yarnBin, "install"), cwd = website.value).execute() Process(List(yarnBin, "run", "build"), cwd = website.value).execute() val redirectUrl = docusaurusProjectName.value + "/index.html" diff --git a/mdoc-sbt/src/main/scala/mdoc/MdocPlugin.scala b/mdoc-sbt/src/main/scala/mdoc/MdocPlugin.scala index d1617ae7..44b8147b 100644 --- a/mdoc-sbt/src/main/scala/mdoc/MdocPlugin.scala +++ b/mdoc-sbt/src/main/scala/mdoc/MdocPlugin.scala @@ -269,7 +269,7 @@ object MdocPlugin extends AutoPlugin { def proxyForSetting(): Def.Initialize[Option[AnyRef]] = { val cls = Class.forName(fullyQualifiedClassName) val stageManifest = new Manifest[AnyRef] { override def runtimeClass: Class[_] = cls } - SettingKey(attributeName)(stageManifest, anyWriter).in(ref).? + (ref / SettingKey(attributeName)(stageManifest, anyWriter)).? } try { val stageSetting = proxyForSetting() @@ -283,8 +283,8 @@ object MdocPlugin extends AutoPlugin { private def mdocCompileOptions(ref: Project): Def.Initialize[Task[CompileOptions]] = Def.task { CompileOptions( - scalacOptions.in(ref, Compile).value, - fullClasspath.in(ref, Compile).value.map(_.data), + (ref / Compile / scalacOptions).value, + (ref / Compile / fullClasspath).value.map(_.data), classloadedSetting( ref, "org.scalajs.linker.interface.StandardConfig",