@@ -111,12 +111,12 @@ final case class SbtCommunityProject(
111111 scalacOptions.map(" \" " + _ + " \" " ).mkString(" List(" , " ," , " )" )
112112
113113 private val baseCommand =
114- " clean; set logLevel in Global := Level.Error; set updateOptions in Global ~= (_.withLatestSnapshots(false)); "
115- ++ (if scalacOptions.isEmpty then " " else s """ set scalacOptions in Global ++= $scalacOptionsString; """ )
114+ " clean; set Global/ logLevel := Level.Error; set Global/updateOptions ~= (_.withLatestSnapshots(false)); "
115+ ++ (if scalacOptions.isEmpty then " " else s """ set Global/scalacOptions ++= $scalacOptionsString; """ )
116116 ++ s " ++ $compilerVersion!; "
117117
118118 override val testCommand =
119- """ set testOptions in Global += Tests.Argument(TestFramework("munit.Framework"), "+l"); """
119+ """ set Global/testOptions += Tests.Argument(TestFramework("munit.Framework"), "+l"); """
120120 ++ s " $baseCommand$sbtTestCommand"
121121
122122 override val publishCommand =
@@ -133,7 +133,7 @@ final case class SbtCommunityProject(
133133 case Some (ivyHome) => List (s " -Dsbt.ivy.home= $ivyHome" )
134134 case _ => Nil
135135 extraSbtArgs ++ sbtProps ++ List (
136- " -sbt-version" , " 1.4.9 " ,
136+ " -sbt-version" , " 1.5.0 " ,
137137 " -Dsbt.supershell=false" ,
138138 s " -Ddotty.communitybuild.dir= $communitybuildDir" ,
139139 s " --addPluginSbtFile= $sbtPluginFilePath"
@@ -149,12 +149,12 @@ object projects:
149149
150150 private def forceDoc (projects : String * ) =
151151 projects.map(project =>
152- s """ ;set $project/Compile/doc/sources ++= ( $project/Compile/doc/tastyFiles).value ; $project/doc """
152+ s """ ;set $project/Compile/doc/sources ++= ( $project/Compile/doc/dotty.tools.sbtplugin.DottyPlugin.autoImport. tastyFiles).value ; $project/doc """
153153 ).mkString(" " )
154154
155155 private def aggregateDoc (in : String )(projects : String * ) =
156156 val tastyFiles =
157- (in +: projects).map(p => s " ( $p/Compile/doc/tastyFiles).value " ).mkString(" ++ " )
157+ (in +: projects).map(p => s " ( $p/Compile/doc/dotty.tools.sbtplugin.DottyPlugin.autoImport. tastyFiles).value " ).mkString(" ++ " )
158158 s """ ;set $in/Compile/doc/sources ++= file("a.scala") +: ( $tastyFiles) ; $in/doc """
159159
160160 lazy val utest = MillCommunityProject (
@@ -524,7 +524,7 @@ object projects:
524524
525525 lazy val cats = SbtCommunityProject (
526526 project = " cats" ,
527- sbtTestCommand = " set scalaJSStage in Global := FastOptStage;buildJVM;validateAllJS" ,
527+ sbtTestCommand = " set Global/scalaJSStage := FastOptStage;buildJVM;validateAllJS" ,
528528 sbtPublishCommand = " catsJVM/publishLocal;catsJS/publishLocal" ,
529529 dependencies = List (discipline, disciplineMunit, scalacheck, simulacrumScalafixAnnotations),
530530 scalacOptions = SbtCommunityProject .scalacOptions.filter(_ != " -Ysafe-init" ) // disable -Ysafe-init, due to -Xfatal-warning
0 commit comments