Skip to content

Commit 69a1a41

Browse files
committed
Use sbt slash syntax
1 parent 1ed90a5 commit 69a1a41

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

community-build/src/scala/dotty/communitybuild/projects.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ final case class SbtCommunityProject(
102102
scalacOptions.map("\"" + _ + "\"").mkString("List(", ",", ")")
103103

104104
private val baseCommand =
105-
"clean; set logLevel in Global := Level.Error; set updateOptions in Global ~= (_.withLatestSnapshots(false)); "
106-
++ (if scalacOptions.isEmpty then "" else s"""set scalacOptions in Global ++= $scalacOptionsString;""")
105+
"clean; set Global/logLevel := Level.Error; set Global/updateOptions ~= (_.withLatestSnapshots(false)); "
106+
++ (if scalacOptions.isEmpty then "" else s"""set Global/scalacOptions ++= $scalacOptionsString;""")
107107
++ s"++$compilerVersion!; "
108108

109109
override val testCommand =
110-
"""set testOptions in Global += Tests.Argument(TestFramework("munit.Framework"), "+l"); """
110+
"""set Global/testOptions += Tests.Argument(TestFramework("munit.Framework"), "+l"); """
111111
++ s"$baseCommand$sbtTestCommand"
112112

113113
override val publishCommand =
@@ -512,7 +512,7 @@ object projects:
512512

513513
lazy val cats = SbtCommunityProject(
514514
project = "cats",
515-
sbtTestCommand = "set scalaJSStage in Global := FastOptStage;buildJVM;validateAllJS",
515+
sbtTestCommand = "set Global/scalaJSStage := FastOptStage;buildJVM;validateAllJS",
516516
sbtPublishCommand = "catsJVM/publishLocal;catsJS/publishLocal",
517517
dependencies = List(discipline, disciplineMunit, scalacheck, simulacrumScalafixAnnotations),
518518
scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Ysafe-init") // disable -Ysafe-init, due to -Xfatal-warning

0 commit comments

Comments
 (0)