Skip to content

Commit a070798

Browse files
Merge pull request #11844 from adpi2/sbt-1.5-RC2
Bump to sbt 1.5.0
2 parents 8b35b67 + 7229749 commit a070798

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,12 +360,9 @@ jobs:
360360
- name: Add SBT proxy repositories
361361
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
362362

363-
- name: Test sbt 1.4.x
363+
- name: Test sbt
364364
run: ./project/scripts/sbt "sbt-dotty/scripted; sbt-community-build/scripted"
365365

366-
- name: Test sbt 1.5.x
367-
run: ./project/scripts/sbt "set \`sbt-dotty\`/scriptedSbt := \"1.5.0-RC1\"; sbt-dotty/scripted sbt-dotty/*"
368-
369366
test_java8:
370367
runs-on: [self-hosted, Linux]
371368
container:
Submodule stdLib213 updated 705 files

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

project/Build.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,9 @@ object Build {
12481248
baseDirectory.value / "../language-server/src/dotty/tools/languageserver/config",
12491249
sbtTestDirectory := baseDirectory.value / "sbt-test",
12501250

1251+
// ensure that sbt-dotty is built on sbt 1.4
1252+
pluginCrossBuild / sbtVersion := "1.4.9",
1253+
12511254
// The batch mode accidentally became the default with no way to disable
12521255
// it in sbt 1.4 (https://github.com/sbt/sbt/issues/5913#issuecomment-716003195).
12531256
// We enable it explicitly here to make it clear that we're using it.

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.4.9
1+
sbt.version=1.5.0

0 commit comments

Comments
 (0)