Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SBT: fix slash syntax warnings #917

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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