-
Notifications
You must be signed in to change notification settings - Fork 223
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
In Scala 2 keep using scala-parser-combinators 1.x (Scala 3: 2.x) #772
Conversation
scalacheck % Test, | ||
sbtIo % Test, | ||
scalamock % Test, | ||
"org.slf4j" % "slf4j-simple" % "1.7.36" % Test | ||
) ++ | ||
(CrossVersion.partialVersion(scalaVersion.value) match { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to care about Scala 2.11 anymore, was dropped in #428
def parserCombinator(scalaVersion: String) = "org.scala-lang.modules" %% "scala-parser-combinators" % { | ||
CrossVersion.partialVersion(scalaVersion) match { | ||
case Some((2, _)) => "1.1.2" // Do not upgrade beyond 1.x | ||
case _ => "2.2.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scala 2 always keep using 1.x, when cross compiling to Scala 3 in future it can use 2.x.
Not sure why tests are not running... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Downgrading again like we did in #725 already. Scala 2.12.17 still uses scala-parser-combinators 1.x, also sbt-native packager and many other sbt-plugins still do. #764 should not have been merged...
Only in Scala 3 we should start using scala-parser-combinators 2.x.