-
Notifications
You must be signed in to change notification settings - Fork 364
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
WIP: Cross-compile 213 #3363
WIP: Cross-compile 213 #3363
Conversation
… imports shadowing local identifiers Signed-off-by: philvarner <[email protected]>
… scala versions Signed-off-by: philvarner <[email protected]>
Signed-off-by: philvarner <[email protected]>
…ways will be with the complex dependency chain Signed-off-by: philvarner <[email protected]>
Signed-off-by: philvarner <[email protected]>
…ent in <=2.12 and 2.13 Signed-off-by: philvarner <[email protected]>
Signed-off-by: philvarner <[email protected]>
Signed-off-by: philvarner <[email protected]>
Signed-off-by: philvarner <[email protected]>
Signed-off-by: philvarner <[email protected]>
…lt object type of ListBuffer Signed-off-by: philvarner <[email protected]>
Signed-off-by: philvarner <[email protected]>
@@ -22,7 +22,7 @@ import scala.io.Source | |||
|
|||
object WKT { | |||
private val wktResourcePath = "/proj4/wkt/epsg.properties" | |||
lazy val parsed: Map[Int, WktCS] = records.mapValues(WKTParser.apply) | |||
lazy val parsed: Map[Int, WktCS] = records.mapValues(WKTParser.apply).toMap |
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.
mapValues
is deprecated in 2.13
Use .view.mapValues(f). A future version will include a strict version of this method (for now, .view.mapValues(f).toMap).
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.
Yes -- this is just to maintain backwards compatibility with 2.11 and 2.12 with the fewest changes possible. There are hundreds if not thousands of deprecation warnings when compiling with 2.13 😬
another thing is @scala.deprecated("Use Iterable instead of Traversable", "2.13.0")
type Traversable[+A] = scala.collection.Iterable[A] @scala.deprecated("Use IterableOnce instead of TraversableOnce", "2.13.0")
type TraversableOnce[+A] = scala.collection.IterableOnce[A] |
Thanks a lot! Closing it in favor of #3294 |
Overview
Cross-compile with 2.13 for non-Spark packages
Checklist
docs
guides update, if necessaryDemo
Optional. Screenshots/REPL
Notes
Optional. Ancillary topics, caveats, alternative strategies that didn't work out, anything else.
Closes #XXX