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

Scala 3 crossbuild #190

Merged
merged 1 commit into from
Mar 4, 2021
Merged

Scala 3 crossbuild #190

merged 1 commit into from
Mar 4, 2021

Conversation

larsrh
Copy link
Contributor

@larsrh larsrh commented Mar 3, 2021

No description provided.

Copy link
Contributor Author

@larsrh larsrh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that there's a few settings from the sbt-release plugin still in your build. Those could probably be removed at some point.

Comment on lines +65 to +66
crossScalaVersions := (ThisBuild / crossScalaVersions).value.filter(_.startsWith("2")),
publishConfiguration := publishConfiguration.value.withOverwrite(true)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is required because Scalatest does not publish DottyJS artifacts.

Comment on lines -9 to +11
val emptyK: List ~> List = λ[List ~> List](_ => Nil)
val emptyK = new (List ~> List) {
def apply[A](x: List[A]) = Nil
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This syntax is not supported in Dotty, so I opted to write it like this. It's only in tests, so it seemed fair to me.

case v if v.startsWith("2.13") => Nil
case _ => Seq("-Ypartial-unification")
case v if v.startsWith("2.12") => Seq("-Ypartial-unification")
case v if v.startsWith("3") => Seq("-source", "3.0-migration")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to make Dotty shut up about missing parens in lambdas. I didn't fix them to keep the PR as small as possible.

@benhutchison
Copy link
Member

For anyone following at home, @larsrh and I agreed on a plan where we'll release a 1.0 crossbuilt on Scala 2.x/3.x, then a 1.1 that's the Scala 3 rework in #182

@benhutchison benhutchison merged commit 39e286c into master Mar 4, 2021
@larsrh larsrh deleted the topic/dotty-cross branch March 4, 2021 17:13
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.

None yet

2 participants