-
Notifications
You must be signed in to change notification settings - Fork 945
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[2.x] import sbt.given
and source compatibility with sbt 1.x
#7737
Comments
For instance, in |
Interesting! So it seems Scala 2.12 is lenient on That's enough to fix the issue. But it should be mentioned in the sbt 2.x migration guide. |
I misunderstood you then. I though you wanted to facilitate the migration/cross compilation, so we don't have to change |
I thought it was almost impossible to cross-compile.. But since the |
I am mostly still programming with scala2, so excuse me in advance if I am missing something obvious, but if we do what you suggested ("revert back to using implicit def in sbt 2.x"), wouldn't |
https://docs.scala-lang.org/scala3/reference/contextual/given-imports.html |
Thanks.
In which version this happened? 3.3? Inspired by that migration section, what do you think about sbt 2.0.x using old style implicits, and sbt 2.1.x using given? |
In sbt 2.0.0-M2 we translated a few
implicit def
togiven
orConversion
. Those new context abstractions in Scala 3 requires the explicitimport sbt.given
.This makes it hard to cross-compile some plugins, because the
import sbt.given
is rejected by the Scala 2 compiler:I suggest we revert back to using
implicit def
in sbt 2.x, to fix this issue.The text was updated successfully, but these errors were encountered: