-
Notifications
You must be signed in to change notification settings - Fork 19
Support scala 3 #290
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
Support scala 3 #290
Conversation
Signed-off-by: Carlos Quiroz <3615303+cquiroz@users.noreply.github.com>
build.sbt
Outdated
libraryDependencies ++= Seq( | ||
"org.typelevel" %%% "cats-core" % "2.6.1", | ||
"org.typelevel" %%% "cats-core" % "2.6.1", | ||
"org.typelevel" %%% "cats-testkit-scalatest" % "2.1.5", |
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.
this isn't a test only depedency?
build.sbt
Outdated
addCompilerPlugin("org.typelevel" % "kind-projector" % "0.13.1" cross CrossVersion.full), | ||
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1"), | ||
scalaVersion := "3.0.1", | ||
crossScalaVersions := Seq(scalaVersion.value, "2.12.13", "2.13.6"), |
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.
This is very dangerous and you shouldn't use this construction. I realize it's very common in a lot of Scala builds but we need to weed it out because it leads to insanity. Remember that scalaVersion
is changed by any ++
or +
usage, meaning that the value of crossScalaVersions
will depend on the current Scala version, which is not at all what y
8000
ou want.
crossScalaVersions := Seq(scalaVersion.value, "2.12.13", "2.13.6"), | |
crossScalaVersions := Seq("3.0.1", "2.12.13", "2.13.6"), | |
scalaVersion := crossScalaVersions.value.last, |
The above accomplishes the same thing without the associated problems.
project/plugins.sbt
Outdated
@@ -6,6 +6,7 @@ addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7") | |||
addSbtPlugin("io.chrisdavenport" % "sbt-mima-version-check" % "0.1.2") | |||
addSbtPlugin("io.chrisdavenport" % "sbt-no-publish" % "0.1.0") | |||
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.3") | |||
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.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.
Is this needed? Particularly with scala-steward?
Signed-off-by: Carlos Quiroz <3615303+cquiroz@users.noreply.github.com>
@djspiewak @johnynek Thanks for the comments. I fixed what you suggested |
Not many code changes are needed, it is mostly lib updates and type declarations
Fixes #289