Skip to content

Commit

Permalink
SBT: fix slash syntax warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Nov 29, 2024
1 parent b303a8a commit beaecf7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion mdoc-sbt/src/main/scala/mdoc/DocusaurusPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions mdoc-sbt/src/main/scala/mdoc/MdocPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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",
Expand Down

0 comments on commit beaecf7

Please sign in to comment.