@@ -111,12 +111,12 @@ final case class SbtCommunityProject(
111
111
scalacOptions.map(" \" " + _ + " \" " ).mkString(" List(" , " ," , " )" )
112
112
113
113
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; """ )
116
116
++ s " ++ $compilerVersion!; "
117
117
118
118
override val testCommand =
119
- """ set testOptions in Global += Tests.Argument(TestFramework("munit.Framework"), "+l"); """
119
+ """ set Global/testOptions += Tests.Argument(TestFramework("munit.Framework"), "+l"); """
120
120
++ s " $baseCommand$sbtTestCommand"
121
121
122
122
override val publishCommand =
@@ -133,7 +133,7 @@ final case class SbtCommunityProject(
133
133
case Some (ivyHome) => List (s " -Dsbt.ivy.home= $ivyHome" )
134
134
case _ => Nil
135
135
extraSbtArgs ++ sbtProps ++ List (
136
- " -sbt-version" , " 1.4.9 " ,
136
+ " -sbt-version" , " 1.5.0 " ,
137
137
" -Dsbt.supershell=false" ,
138
138
s " -Ddotty.communitybuild.dir= $communitybuildDir" ,
139
139
s " --addPluginSbtFile= $sbtPluginFilePath"
@@ -149,12 +149,12 @@ object projects:
149
149
150
150
private def forceDoc (projects : String * ) =
151
151
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 """
153
153
).mkString(" " )
154
154
155
155
private def aggregateDoc (in : String )(projects : String * ) =
156
156
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(" ++ " )
158
158
s """ ;set $in/Compile/doc/sources ++= file("a.scala") +: ( $tastyFiles) ; $in/doc """
159
159
160
160
lazy val utest = MillCommunityProject (
@@ -524,7 +524,7 @@ object projects:
524
524
525
525
lazy val cats = SbtCommunityProject (
526
526
project = " cats" ,
527
- sbtTestCommand = " set scalaJSStage in Global := FastOptStage;buildJVM;validateAllJS" ,
527
+ sbtTestCommand = " set Global/scalaJSStage := FastOptStage;buildJVM;validateAllJS" ,
528
528
sbtPublishCommand = " catsJVM/publishLocal;catsJS/publishLocal" ,
529
529
dependencies = List (discipline, disciplineMunit, scalacheck, simulacrumScalafixAnnotations),
530
530
scalacOptions = SbtCommunityProject .scalacOptions.filter(_ != " -Ysafe-init" ) // disable -Ysafe-init, due to -Xfatal-warning
0 commit comments