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

cross-compile imports #70

Closed
frankivo opened this issue Mar 4, 2020 · 3 comments
Closed

cross-compile imports #70

frankivo opened this issue Mar 4, 2020 · 3 comments

Comments

@frankivo
Copy link

frankivo commented Mar 4, 2020

My code depends on "import scala.jdk.CollectionConverters." in Scala 2.13 which is predecesed by "import collection.CollectionConverters." in Scala 2.11.

Any hints on how, if at all possible, I could resolve that?

@prokod
Copy link
Owner

prokod commented Mar 5, 2020

Hi frankivo,
This is an interesting use case. What about adding a module that will contain all code from scala 2.11 ? The plugin supports that to some extent. This approach is also supported in relevant discussion here. I am aware that this approach duplicates code but I do not see right now a lot of other more appealing approaches.

@frankivo
Copy link
Author

frankivo commented Mar 5, 2020

That could work I guess. Though the code is exactly the same apart from the import.

@frankivo
Copy link
Author

frankivo commented Mar 5, 2020

Maybe I'll just write something myself do the asScala part.

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

No branches or pull requests

2 participants