@@ -102,12 +102,12 @@ final case class SbtCommunityProject(
102
102
scalacOptions.map(" \" " + _ + " \" " ).mkString(" List(" , " ," , " )" )
103
103
104
104
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; """ )
107
107
++ s " ++ $compilerVersion!; "
108
108
109
109
override val testCommand =
110
- """ set testOptions in Global += Tests.Argument(TestFramework("munit.Framework"), "+l"); """
110
+ """ set Global/testOptions += Tests.Argument(TestFramework("munit.Framework"), "+l"); """
111
111
++ s " $baseCommand$sbtTestCommand"
112
112
113
113
override val publishCommand =
@@ -512,7 +512,7 @@ object projects:
512
512
513
513
lazy val cats = SbtCommunityProject (
514
514
project = " cats" ,
515
- sbtTestCommand = " set scalaJSStage in Global := FastOptStage;buildJVM;validateAllJS" ,
515
+ sbtTestCommand = " set Global/scalaJSStage := FastOptStage;buildJVM;validateAllJS" ,
516
516
sbtPublishCommand = " catsJVM/publishLocal;catsJS/publishLocal" ,
517
517
dependencies = List (discipline, disciplineMunit, scalacheck, simulacrumScalafixAnnotations),
518
518
scalacOptions = SbtCommunityProject .scalacOptions.filter(_ != " -Ysafe-init" ) // disable -Ysafe-init, due to -Xfatal-warning
0 commit comments