Skip to content

Commit 196c181

Browse files
committed
Scala 3.0.0-RC2, sbt 1.5, JDK 16
1 parent 7bc6f6e commit 196c181

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
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

build.sbt

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,24 @@ 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),
22-
scalaModuleMimaPreviousVersion := Some("1.0.0").filterNot(_ => isDotty.value),
23+
scalaModuleMimaPreviousVersion := (CrossVersion.partialVersion(scalaVersion.value) match {
24+
case Some((3, _)) => None
25+
case _ => Some("1.0.0")
26+
}),
2327
)
2428

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

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-RC2

project/plugins.sbt

Lines changed: 0 additions & 1 deletion
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)