Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for Scala 3.0.0-M2 and 3.0.0-M3 #496

Merged
merged 1 commit into from
May 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions bin/test-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ coursier fetch \
org.scalameta:mdoc_2.12:$version \
org.scalameta:mdoc_2.12.12:$version \
org.scalameta:mdoc_2.13:$version \
org.scalameta:mdoc_3.0.0-M2:$version \
org.scalameta:mdoc_3.0.0-M3:$version \
org.scalameta:mdoc_3.0.0-RC1:$version \
org.scalameta:mdoc_3.0.0-RC2:$version \
org.scalameta:mdoc_3.0.0-RC3:$version \
Expand Down
20 changes: 5 additions & 15 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import scala.collection.mutable
def scala212 = "2.12.13"
def scala211 = "2.11.12"
def scala213 = "2.13.5"
def scala3 = List("3.0.0-RC3", "3.0.0-RC2", "3.0.0-RC1", "3.0.0-M3", "3.0.0-M2")
def scala3 = List("3.0.0-RC3", "3.0.0-RC2", "3.0.0-RC1")
def scala2Versions = List(scala212, scala211, scala213)
def allScalaVersions = scala2Versions ::: scala3

Expand Down Expand Up @@ -130,20 +130,10 @@ lazy val fansiVersion = Def.setting {

lazy val fs2Version = Def.setting {
if (scalaVersion.value.startsWith("2.11")) "2.1.0"
else if (scalaVersion.value == "3.0.0-M2") "2.5.0"
else if (scalaVersion.value == "3.0.0-M3") "2.5.3"
else if (scalaVersion.value == "3.0.0-RC1") "2.5.4"
else "2.5.5"
}

lazy val munitVersion = Def.setting {
if (scalaVersion.value == "3.0.0-M2")
"0.7.21"
else if (scalaVersion.value == "3.0.0-M3")
"0.7.22"
else V.munit
}

lazy val interfaces = project
.in(file("mdoc-interfaces"))
.settings(
Expand Down Expand Up @@ -270,7 +260,7 @@ val tests = project
sharedSettings,
publish / skip := true,
libraryDependencies ++= List(
"org.scalameta" %% "munit" % munitVersion.value
"org.scalameta" %% "munit" % V.munit
),
buildInfoPackage := "tests",
buildInfoKeys := Seq[BuildInfoKey](
Expand Down Expand Up @@ -306,7 +296,7 @@ lazy val worksheets = project
sharedSettings,
publish / skip := true,
libraryDependencies ++= List(
"org.scalameta" %% "munit" % munitVersion.value % Test
"org.scalameta" %% "munit" % V.munit % Test
)
)
.dependsOn(mdoc, tests)
Expand All @@ -328,7 +318,7 @@ lazy val unit = project
),
libraryDependencies ++= List(
"co.fs2" %% "fs2-core" % fs2Version.value,
"org.scalameta" %% "munit" % munitVersion.value % Test
"org.scalameta" %% "munit" % V.munit % Test
),
buildInfoPackage := "tests.cli",
buildInfoKeys := Seq[BuildInfoKey](
Expand All @@ -346,7 +336,7 @@ lazy val unitJS = project
crossScalaVersions --= scala3,
Compile / unmanagedSourceDirectories ++= multiScalaDirectories("tests/unit-js").value,
libraryDependencies ++= List(
"org.scalameta" %% "munit" % munitVersion.value % Test
"org.scalameta" %% "munit" % V.munit % Test
),
buildInfoPackage := "tests.js",
buildInfoKeys := Seq[BuildInfoKey](
Expand Down
Loading