Skip to content

Commit

Permalink
Fix pprint dependency for Scala3 RC versions (#2824)
Browse files Browse the repository at this point in the history
  • Loading branch information
dos65 authored May 27, 2021
1 parent 4e10f57 commit a7cdacb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,9 @@ lazy val V = new {
def scala2Versions = nonDeprecatedScala2Versions ++ deprecatedScala2Versions

// Scala 3
def scala3RCVersions = Seq("3.0.0-RC3", "3.0.0-RC2", "3.0.0-RC1")
def nonDeprecatedScala3Versions =
Seq(scala3, "3.0.0-RC3", "3.0.0-RC2", "3.0.0-RC1")
scala3 +: scala3RCVersions
def deprecatedScala3Versions = Seq()
def scala3Versions = nonDeprecatedScala3Versions ++ deprecatedScala3Versions

Expand Down Expand Up @@ -350,8 +351,10 @@ val mtagsSettings = List(
if (isCI) Nil
// NOTE(olafur) pprint is indispensable for me while developing, I can't
// use println anymore for debugging because pprint.log is 100 times better.
else
List("com.lihaoyi" %% "pprint" % "0.6.6")
else {
if (V.scala3RCVersions.contains(scalaVersion.value)) Nil
else List("com.lihaoyi" %% "pprint" % "0.6.6")
}
},
buildInfoPackage := "scala.meta.internal.mtags",
buildInfoKeys := Seq[BuildInfoKey](
Expand Down

0 comments on commit a7cdacb

Please sign in to comment.