-
Notifications
You must be signed in to change notification settings - Fork 43
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
add sbt 2.x cross build setting #332
Conversation
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.
@@ -4,7 +4,9 @@ import java.io.OutputStreamWriter | |||
import java.nio.file.Path | |||
|
|||
import sbt.Keys._ | |||
import sbt._ | |||
// format: off |
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.
why is this necessary? if this is scala3 syntax, better to modify scalafmt configuration, no?
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.
Lines 23 to 24 in 0344d19
imports { | |
expand = true |
without this comment expand import
- import sbt.{given, _}
+ import sbt._
+ import sbt.given
but error if Scala 2.12
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 is an unreported bug in scalafmt?
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.
Look good as far as I can see. Thanks @xuwei-k !
No description provided.