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

WIP: Cross-compile 213 #3363

Closed
wants to merge 20 commits into from

Conversation

philvarner
Copy link
Contributor

Overview

Cross-compile with 2.13 for non-Spark packages

Checklist

  • ./CHANGELOG.md updated, if necessary. Link to the issue if closed, otherwise the PR.
  • Module Hierarchy updated, if necessary
  • docs guides update, if necessary
  • New user API has useful Scaladoc strings
  • Unit tests added for bug-fix or new feature

Demo

Optional. Screenshots/REPL

Notes

Optional. Ancillary topics, caveats, alternative strategies that didn't work out, anything else.

Closes #XXX

… imports shadowing local identifiers

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]>
…lt object type of ListBuffer

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
Copy link

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).

Copy link
Contributor Author

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 😬

@yurique
Copy link

yurique commented Mar 12, 2021

another thing is Traversable and TraversableOnce – these are deprecated in 2.13 as well.

  @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]

@pomadchin
Copy link
Member

Thanks a lot! Closing it in favor of #3294

@pomadchin pomadchin closed this Apr 8, 2021
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.

3 participants