Skip to content

Commit c28f7e1

Browse files
authored
Merge pull request #169 from SethTisue/scala-3.0.0-RC2
2 parents 80eb16b + 1fad445 commit c28f7e1

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed

Diff for: .travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ import: scala/scala-dev:travis/default.yml
55
language: scala
66

77
scala:
8-
- 3.0.0-M3
8+
- 3.0.0-RC2
99
- 3.0.0-RC1
1010
- 2.13.5
1111

1212
env:
1313
- ADOPTOPENJDK=8
1414
- ADOPTOPENJDK=11
15+
- ADOPTOPENJDK=16
1516

1617
install:
1718
- git fetch --tags # get all tags for sbt-dynver

Diff for: build.sbt

+16-14
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,25 @@ ThisBuild / versionPolicyIntention := Compatibility.BinaryAndSourceCompatible
66

77
lazy val commonSettings: Seq[Setting[_]] =
88
ScalaModulePlugin.scalaModuleSettings ++ Seq(
9-
Compile / compile / scalacOptions --= (if (isDotty.value) Seq("-Xlint")
10-
else Seq()),
11-
Compile / compile / scalacOptions ++= (if (isDotty.value) Seq()
12-
else Seq("-Werror")),
9+
Compile / compile / scalacOptions --= (CrossVersion.partialVersion(scalaVersion.value) match {
10+
case Some((3, _)) => Seq("-Xlint")
11+
case _ => Seq()
12+
}),
13+
Compile / compile / scalacOptions ++= (CrossVersion.partialVersion(scalaVersion.value) match {
14+
case Some((3, _)) => Seq()
15+
case _ => Seq("-Werror"),
16+
}),
1317
)
1418

1519
lazy val core = project.in(file("core"))
1620
.settings(commonSettings)
1721
.settings(
1822
name := "scala-parallel-collections",
19-
// don't run Dottydoc, it errors and isn't needed anyway.
20-
// but we leave `publishArtifact` set to true, otherwise Sonatype won't let us publish
21-
Compile / doc / sources := (if (isDotty.value) Seq() else (Compile / doc/ sources).value),
2223
Compile / doc / autoAPIMappings := true,
23-
scalaModuleMimaPreviousVersion := Some("1.0.0").filterNot(_ => isDotty.value),
24+
scalaModuleMimaPreviousVersion := (CrossVersion.partialVersion(scalaVersion.value) match {
25+
case Some((3, _)) => None
26+
case _ => Some("1.0.0")
27+
}),
2428
)
2529

2630
lazy val junit = project.in(file("junit"))
@@ -47,11 +51,9 @@ lazy val scalacheck = project.in(file("scalacheck"))
4751
lazy val testmacros = project.in(file("testmacros"))
4852
.settings(commonSettings)
4953
.settings(
50-
libraryDependencies += (
51-
if (isDotty.value)
52-
scalaOrganization.value %% "scala3-compiler" % scalaVersion.value
53-
else
54-
scalaOrganization.value % "scala-compiler" % scalaVersion.value
55-
),
54+
libraryDependencies += (CrossVersion.partialVersion(scalaVersion.value) match {
55+
case Some((3, _)) => scalaOrganization.value %% "scala3-compiler" % scalaVersion.value
56+
case _ => scalaOrganization.value % "scala-compiler" % scalaVersion.value
57+
}),
5658
publish / skip := true,
5759
)

Diff for: project/build.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.4.9
1+
sbt.version=1.5.0-RC2

Diff for: project/plugins.sbt

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "2.2.4")
22
addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "1.0.0-RC5")
3-
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.5.3")

0 commit comments

Comments
 (0)