@@ -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