Skip to content

Commit

Permalink
Merge pull request #169 from SethTisue/scala-3.0.0-RC2
Browse files Browse the repository at this point in the history
  • Loading branch information
SethTisue authored Mar 29, 2021
2 parents 80eb16b + 1fad445 commit c28f7e1
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ import: scala/scala-dev:travis/default.yml
language: scala

scala:
- 3.0.0-M3
- 3.0.0-RC2
- 3.0.0-RC1
- 2.13.5

env:
- ADOPTOPENJDK=8
- ADOPTOPENJDK=11
- ADOPTOPENJDK=16

install:
- git fetch --tags # get all tags for sbt-dynver
Expand Down
30 changes: 16 additions & 14 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,25 @@ ThisBuild / versionPolicyIntention := Compatibility.BinaryAndSourceCompatible

lazy val commonSettings: Seq[Setting[_]] =
ScalaModulePlugin.scalaModuleSettings ++ Seq(
Compile / compile / scalacOptions --= (if (isDotty.value) Seq("-Xlint")
else Seq()),
Compile / compile / scalacOptions ++= (if (isDotty.value) Seq()
else Seq("-Werror")),
Compile / compile / scalacOptions --= (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((3, _)) => Seq("-Xlint")
case _ => Seq()
}),
Compile / compile / scalacOptions ++= (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((3, _)) => Seq()
case _ => Seq("-Werror"),
}),
)

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

lazy val junit = project.in(file("junit"))
Expand All @@ -47,11 +51,9 @@ lazy val scalacheck = project.in(file("scalacheck"))
lazy val testmacros = project.in(file("testmacros"))
.settings(commonSettings)
.settings(
libraryDependencies += (
if (isDotty.value)
scalaOrganization.value %% "scala3-compiler" % scalaVersion.value
else
scalaOrganization.value % "scala-compiler" % scalaVersion.value
),
libraryDependencies += (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((3, _)) => scalaOrganization.value %% "scala3-compiler" % scalaVersion.value
case _ => scalaOrganization.value % "scala-compiler" % scalaVersion.value
}),
publish / skip := true,
)
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.4.9
sbt.version=1.5.0-RC2
1 change: 0 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "2.2.4")
addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "1.0.0-RC5")
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.5.3")

0 comments on commit c28f7e1

Please sign in to comment.