Skip to content

Commit 7ccf348

Browse files
committed
Merge branch 'cheeseng-3.1.0-SNAP13' into 3.1.x
2 parents 9e12720 + 1415e6d commit 7ccf348

File tree

5 files changed

+30
-26
lines changed

5 files changed

+30
-26
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ scala:
33
- 2.10.7
44
- 2.11.12
55
- 2.12.8
6-
# - 2.13.0-M2
6+
# - 2.13.0
77

88
jdk:
99
- oraclejdk8

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,21 +150,21 @@ Before publishing any patch release, binary compatibility with previous version
150150
$ sbt ++2.12.8 scalacticJS/package scalacticJS/mimaReportBinaryIssues
151151
$ sbt ++2.12.8 scalatestJS/package scalatestJS/mimaReportBinaryIssues
152152

153-
$ sbt ++2.13.0-RC3 scalactic/package scalactic/mimaReportBinaryIssues
154-
$ sbt ++2.13.0-RC3 scalatest/package scalatest/mimaReportBinaryIssues
155-
$ sbt ++2.13.0-RC3 scalacticJS/package scalacticJS/mimaReportBinaryIssues
156-
$ sbt ++2.13.0-RC3 scalatestJS/package scalatestJS/mimaReportBinaryIssues
153+
$ sbt ++2.13.0 scalactic/package scalactic/mimaReportBinaryIssues
154+
$ sbt ++2.13.0 scalatest/package scalatest/mimaReportBinaryIssues
155+
$ sbt ++2.13.0 scalacticJS/package scalacticJS/mimaReportBinaryIssues
156+
$ sbt ++2.13.0 scalatestJS/package scalatestJS/mimaReportBinaryIssues
157157

158158
To publish scalactic, scalatest and scalatest-app use the following command:
159159

160160
$ export SCALAJS_VERSION=0.6.28
161161
$ sbt ++2.10.7 clean publishSigned "project scalatestAppJS" clean publishSigned
162162
$ sbt ++2.11.12 clean publishSigned "project scalatestAppJS" clean publishSigned
163163
$ sbt ++2.12.8 "project scalatestApp" clean publishSigned "project scalatestAppJS" clean publishSigned
164-
$ sbt ++2.13.0-RC3 "project scalatestApp" clean publishSigned "project scalatestAppJS" clean publishSigned
164+
$ sbt ++2.13.0 "project scalatestApp" clean publishSigned "project scalatestAppJS" clean publishSigned
165165
$ sbt ++2.11.12 "project scalatestAppNative" clean publishSigned
166166
$ export SCALAJS_VERSION=1.0.0-M3
167167
$ sbt ++2.11.12 "project scalatestAppJS" clean publishSigned
168168
$ sbt ++2.12.6 "project scalatestAppJS" clean publishSigned
169169
$ export SCALAJS_VERSION=1.0.0-M8
170-
$ sbt ++2.13.0-RC3 "project scalatestAppJS" clean publishSigned
170+
$ sbt ++2.13.0 "project scalatestAppJS" clean publishSigned

project/GenScalaTestDotty.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ object GenScalaTestDotty {
162162
) ++
163163
copyDir("scalatest/src/main/scala/org/scalatest/path", "org/scalatest/path", targetDir, List.empty) ++
164164
copyDir("scalatest/src/main/scala/org/scalatest/prop", "org/scalatest/prop", targetDir, List.empty) ++
165+
copyDir("scalatest/src/main/scala/org/scalatest/propspec", "org/scalatest/propspec", targetDir, List.empty) ++
165166
copyDir("scalatest/src/main/scala/org/scalatest/time", "org/scalatest/time", targetDir, List.empty) ++
166167
copyDir("scalatest/src/main/scala/org/scalatest/tools", "org/scalatest/tools", targetDir, List.empty) ++
167168
copyDir("scalatest/src/main/scala/org/scalatest/refspec", "org/scalatest/refspec", targetDir, List.empty) ++
@@ -172,7 +173,8 @@ object GenScalaTestDotty {
172173
"NotWord.scala",
173174
"ResultOfNotWordForAny.scala"
174175
)
175-
)
176+
) ++
177+
copyDir("scalatest/src/main/scala/org/scalatest/wordspec", "org/scalatest/wordspec", targetDir, List.empty)
176178
}
177179

178180
def genTest(targetDir: File, version: String, scalaVersion: String): Seq[File] = {

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.3.6")
1414

1515
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.2.0")
1616

17-
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.3.0")
17+
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.3.3")

project/scalatest.scala

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ import com.typesafe.tools.mima.plugin.MimaKeys.{mimaPreviousArtifacts, mimaCurre
2525
import com.typesafe.tools.mima.core._
2626
import com.typesafe.tools.mima.core.ProblemFilters._
2727

28+
import dotty.tools.sbtplugin.DottyPlugin.autoImport._
29+
2830
object ScalatestBuild {
2931

3032
// To run gentests
@@ -33,17 +35,17 @@ object ScalatestBuild {
3335

3436
// To enable deprecation warnings on the fly
3537
// set scalacOptions in ThisBuild ++= Seq("-unchecked", "-deprecation")
36-
3738
// To temporarily switch sbt to a different Scala version:
3839
// > ++ 2.10.5
39-
lazy val supportedScalaVersions = List("2.12.8", "2.11.12", "2.10.7", "2.13.0-RC3")
4040

41-
val releaseVersion = "3.1.0-SNAP12"
41+
lazy val supportedScalaVersions = List("2.13.0", "2.12.8", "2.11.12", "2.10.7")
42+
43+
val releaseVersion = "3.1.0-SNAP13"
4244

4345
val previousReleaseVersion = "3.0.5"
4446

45-
val plusJUnitVersion = "1.0.0-SNAP8"
46-
val plusTestNGVersion = "1.0.0-SNAP7"
47+
val plusJUnitVersion = "1.0.0-SNAP9"
48+
val plusTestNGVersion = "1.0.0-SNAP8"
4749
val flexmarkVersion = "0.35.10"
4850

4951
val githubTag = "release-3.1.0" // for scaladoc source urls
@@ -174,8 +176,10 @@ object ScalatestBuild {
174176

175177
def scalaXmlDependency(theScalaVersion: String): Seq[ModuleID] =
176178
CrossVersion.partialVersion(theScalaVersion) match {
177-
case Some((2, scalaMajor)) if scalaMajor >= 11 => Seq("org.scala-lang.modules" %% "scala-xml" % "1.2.0")
178-
case other => Seq.empty
179+
case Some((scalaEpoch, scalaMajor)) if scalaEpoch != 2 || scalaMajor >= 11 =>
180+
Seq(("org.scala-lang.modules" %% "scala-xml" % "1.2.0").withDottyCompat(theScalaVersion))
181+
case other =>
182+
Seq.empty
179183
}
180184

181185

@@ -212,15 +216,14 @@ object ScalatestBuild {
212216
// if scala 2.13+ is used, add dependency on scala-parallel-collections module
213217
case Some((2, scalaMajor)) if scalaMajor >= 13 =>
214218
Seq(
215-
// We'll do without scala-parallel-collections until it catches up with Scala 2.13.0-M4.
216219
//"org.scala-lang.modules" %% "scala-parallel-collections" % "0.1.2",
217220
"org.scala-lang.modules" %%% "scala-parser-combinators" % "1.1.2"
218221
)
219222

220223
case Some((2, scalaMajor)) if scalaMajor >= 11 =>
221224
Seq("org.scala-lang.modules" %%% "scala-parser-combinators" % "1.1.1")
222225

223-
case other =>
226+
case _ =>
224227
Seq.empty
225228
}
226229
}
@@ -597,6 +600,7 @@ object ScalatestBuild {
597600
.settings(
598601
projectTitle := "Scalactic",
599602
organization := "org.scalactic",
603+
moduleName := "scalactic",
600604
initialCommands in console := "import org.scalactic._",
601605
sourceGenerators in Compile += {
602606
Def.task{
@@ -618,12 +622,9 @@ object ScalatestBuild {
618622
GenScalacticDotty.genResource((resourceManaged in Compile).value)
619623
}.taskValue
620624
},
621-
// include the macro classes and resources in the main jar
622-
mappings in (Compile, packageBin) ++= mappings.in(scalacticMacro, Compile, packageBin).value,
623-
// include the macro sources in the main source jar
624-
mappings in (Compile, packageSrc) ++= mappings.in(scalacticMacro, Compile, packageSrc).value,
625-
scalacticDocSourcesSetting,
626-
docTaskSetting,
625+
//scalacticDocSourcesSetting,
626+
//docTaskSetting,
627+
publishArtifact in (Compile, packageDoc) := false, // Temporary disable publishing of doc, can't get it to build.
627628
mimaPreviousArtifacts := Set(organization.value %% name.value % previousReleaseVersion),
628629
mimaCurrentClassfiles := (classDirectory in Compile).value.getParentFile / (name.value + "_" + scalaBinaryVersion.value + "-" + releaseVersion + ".jar")
629630
).settings(osgiSettings: _*).settings(
@@ -950,6 +951,7 @@ object ScalatestBuild {
950951
initialCommands in console := """|import org.scalatest._
951952
|import org.scalactic._
952953
|import Matchers._""".stripMargin,
954+
libraryDependencies ++= scalaXmlDependency(scalaVersion.value),
953955
libraryDependencies ++= scalatestLibraryDependencies,
954956
sourceGenerators in Compile += {
955957
Def.task {
@@ -982,7 +984,8 @@ object ScalatestBuild {
982984
//GenSafeStyles.genMain((sourceManaged in Compile).value / "org" / "scalatest", version.value, scalaVersion.value)
983985
}.taskValue
984986
},
985-
scalatestJSDocTaskSetting,
987+
//scalatestJSDocTaskSetting,
988+
publishArtifact in (Compile, packageDoc) := false, // Temporary disable publishing of doc, can't get it to build.
986989
mimaPreviousArtifacts := Set(organization.value %% name.value % previousReleaseVersion),
987990
mimaCurrentClassfiles := (classDirectory in Compile).value.getParentFile / (name.value + "_" + scalaBinaryVersion.value + "-" + releaseVersion + ".jar"),
988991
mimaBinaryIssueFilters ++= {
@@ -2147,7 +2150,6 @@ object ScalatestBuild {
21472150
(resourceManaged in Compile).value,
21482151
name.value)
21492152

2150-
import dotty.tools.sbtplugin.DottyPlugin.autoImport._
21512153
// List of available night build at https://repo1.maven.org/maven2/ch/epfl/lamp/dotty-compiler_0.14/
21522154
lazy val dottyVersion = dottyLatestNightlyBuild.get
21532155
// lazy val dottyVersion = "0.15.0-bin-20190522-ffb250d-NIGHTLY"

0 commit comments

Comments
 (0)