8000 Support scala 3 by cquiroz · Pull Request #290 · typelevel/cats-time · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 2 commits into from
Aug 30, 2021
Merged

Support scala 3 #290

merged 2 commits into from
Aug 30, 2021

Conversation

cquiroz
Copy link
Contributor
@cquiroz cquiroz commented Aug 27, 2021

Not many code changes are needed, it is mostly lib updates and type declarations

Fixes #289

Signed-off-by: Carlos Quiroz <3615303+cquiroz@users.noreply.github.com>
@cquiroz cquiroz mentioned this pull request Aug 30, 2021
@cquiroz cquiroz requested a review from sh0hei August 30, 2021 13:19
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",

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"),
Copy link
Member

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.

Suggested change
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.

@@ -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")
Copy link
Member

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>
@cquiroz
Copy link
Contributor Author
cquiroz commented Aug 30, 2021

@djspiewak @johnynek Thanks for the comments. I fixed what you suggested

@djspiewak djspiewak merged commit 24ad537 into main Aug 30, 2021
@sh0hei sh0hei deleted the scala3 branch August 31, 2021 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support scala 3
3 participants
0