Skip to content

Commit 4c7f2aa

Browse files
committed
Merge branch 'cheeseng-fix-scaladoc-source-url' into 3.2.x-new
2 parents 9bcd842 + 93c3ac1 commit 4c7f2aa

File tree

4 files changed

+27
-27
lines changed

4 files changed

+27
-27
lines changed

project/BuildCommons.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import scala.io.Source
66
trait BuildCommons {
77

88
lazy val scalaVersionsSettings: Seq[Setting[_]] = Seq(
9-
crossScalaVersions := Seq("2.13.5", "2.12.13", "2.11.12", "2.10.7"),
9+
crossScalaVersions := Seq("2.13.4", "2.12.13", "2.11.12", "2.10.7"),
1010
scalaVersion := crossScalaVersions.value.head,
1111
)
1212

@@ -20,8 +20,8 @@ trait BuildCommons {
2020

2121
val previousReleaseVersion = "3.2.6"
2222

23-
val plusJUnitVersion = "3.2.6.0"
24-
val plusTestNGVersion = "3.2.6.0"
23+
val plusJUnitVersion = "3.2.7.0"
24+
val plusTestNGVersion = "3.2.7.0"
2525
val flexmarkVersion = "0.36.8"
2626

2727
def rootProject: Project

project/DottyBuild.scala

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ trait DottyBuild { this: BuildCommons =>
1414

1515
// List of available night build at https://repo1.maven.org/maven2/ch/epfl/lamp/dotty-compiler_0.27/
1616
// lazy val dottyVersion = dottyLatestNightlyBuild.get
17-
lazy val dottyVersion = System.getProperty("scalatest.dottyVersion", "3.0.0-RC1")
17+
lazy val dottyVersion = System.getProperty("scalatest.dottyVersion", "3.0.0-RC2")
1818
lazy val dottySettings = List(
1919
scalaVersion := dottyVersion,
2020
scalacOptions ++= List("-language:implicitConversions", "-noindent", "-Xprint-suspension")
@@ -267,17 +267,18 @@ trait DottyBuild { this: BuildCommons =>
267267
).settings(osgiSettings: _*).settings(
268268
OsgiKeys.exportPackage := Seq(
269269
"org.scalatest",
270-
"org.scalatest.concurrent",
271-
"org.scalatest.enablers",
272-
"org.scalatest.exceptions",
273-
"org.scalatest.events",
274-
"org.scalatest.fixture",
275-
"org.scalatest.prop",
276-
"org.scalatest.tags",
277-
"org.scalatest.tagobjects",
278-
"org.scalatest.time",
279-
"org.scalatest.tools",
280-
"org.scalatest.verbs"
270+
"org.scalatest.compatible",
271+
"org.scalatest.concurrent",
272+
"org.scalatest.enablers",
273+
"org.scalatest.exceptions",
274+
"org.scalatest.events",
275+
"org.scalatest.fixture",
276+
"org.scalatest.prop",
277+
"org.scalatest.tags",
278+
"org.scalatest.tagobjects",
279+
"org.scalatest.time",
280+
"org.scalatest.tools",
281+
"org.scalatest.verbs"
281282
),
282283
OsgiKeys.importPackage := Seq(
283284
"org.scalatest.*",
@@ -398,7 +399,7 @@ trait DottyBuild { this: BuildCommons =>
398399

399400
lazy val scalatestDiagramsDottyJS = project.in(file("dotty/diagrams.js"))
400401
.scalatestSubModule(
401-
"diagrams",
402+
"scalatest-diagrams",
402403
"ScalaTest Diagrams Dotty JS",
403404
(targetDir, version, scalaVersion) =>
404405
GenScalaTestDotty.genDiagramsScalaJS(targetDir / "org" / "scalatest", version, scalaVersion)

project/scalatest.scala

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@ object ScalatestBuild extends BuildCommons with DottyBuild with NativeBuild with
3232
// To temporarily switch sbt to a different Scala version:
3333
// > ++ 2.10.5
3434

35-
val githubTag = "release-3.2.7" // for scaladoc source urls
36-
37-
val scalatestDocSourceUrl =
38-
"https://github.com/scalatest/scalatest/tree/"+ githubTag +
39-
"/scalatest/€{FILE_PATH}.scala"
40-
41-
val scalacticDocSourceUrl =
42-
"https://github.com/scalatest/scalatest/tree/"+ githubTag +
43-
"/scalactic/€{FILE_PATH}.scala"
44-
4535
def envVar(name: String): Option[String] =
4636
try {
4737
Some(sys.env(name))
@@ -143,7 +133,7 @@ object ScalatestBuild extends BuildCommons with DottyBuild with NativeBuild with
143133
def scalaXmlDependency(theScalaVersion: String): Seq[ModuleID] =
144134
CrossVersion.partialVersion(theScalaVersion) match {
145135
case Some((scalaEpoch, scalaMajor)) if scalaEpoch == 3 =>
146-
Seq(("org.scala-lang.modules" %% "scala-xml" % "2.0.0-M5"))
136+
Seq(("org.scala-lang.modules" %% "scala-xml" % "2.0.0-RC1"))
147137
case Some((scalaEpoch, scalaMajor)) if scalaEpoch == 2 && scalaMajor >= 11 =>
148138
Seq(("org.scala-lang.modules" %% "scala-xml" % "1.3.0"))
149139
case other =>
@@ -546,6 +536,7 @@ object ScalatestBuild extends BuildCommons with DottyBuild with NativeBuild with
546536
}.taskValue
547537
},
548538
scalatestDocSettings,
539+
scalatestDocSourcesSetting,
549540
unmanagedResourceDirectories in Compile += baseDirectory.value / "scalatest" / "src" / "main" / "resources",
550541
mimaPreviousArtifacts := Set(organization.value %% name.value % previousReleaseVersion),
551542
mimaCurrentClassfiles := (classDirectory in Compile).value.getParentFile / (name.value + "_" + scalaBinaryVersion.value + "-" + releaseVersion + ".jar")
@@ -1736,6 +1727,12 @@ object ScalatestBuild extends BuildCommons with DottyBuild with NativeBuild with
17361727
file(".").getCanonicalFile),
17371728
docsrcDir.value)
17381729

1730+
val scalatestDocSourceUrl =
1731+
s"https://github.com/scalatest/releases-source/$releaseVersion/scalatest€{FILE_PATH}.scala"
1732+
1733+
val scalacticDocSourceUrl =
1734+
s"https://github.com/scalatest/releases-source/$releaseVersion/scalactic€{FILE_PATH}.scala"
1735+
17391736
val scalatestDocScalacOptionsSetting =
17401737
scalacOptions in (Compile, doc) :=
17411738
Seq[String](

publish.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ sbt ++2.11.12 "project scalacticNative" clean publishSigned
1414
sbt ++2.12.13 "project scalacticNative" clean publishSigned
1515
sbt ++2.13.5 "project scalacticNative" clean publishSigned
1616
sbt "project scalacticDotty" clean publishSigned
17+
sbt "project scalacticDottyJS" clean publishSigned
1718
sbt "project scalactic" sonatypeBundleUpload
1819

1920
sbt clean
@@ -35,6 +36,7 @@ sbt ++2.11.12 "project scalatestNative" clean publishSigned
3536
sbt ++2.12.13 "project scalatestNative" clean publishSigned
3637
sbt ++2.13.5 "project scalatestNative" clean publishSigned
3738
sbt "project scalatestDotty" clean publishSigned
39+
sbt "project scalatestDottyJS" clean publishSigned
3840
sbt "project scalatest" sonatypeBundleUpload
3941

4042
sbt clean

0 commit comments

Comments
 (0)