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

Support multiple scala-js/scala-native versions #47

Closed
mdedetrich opened this issue Jul 4, 2017 · 7 comments
Closed

Support multiple scala-js/scala-native versions #47

mdedetrich opened this issue Jul 4, 2017 · 7 comments
Labels

Comments

@mdedetrich
Copy link

Not sure if this is currently possible, but it would be great if sbt-crossproject could support multiple versions of scala-js and scala-native at once.

Personal use case is https://github.com/mdedetrich/scalajson, and I would like to support scala-js 0.6.18 and the new scala-js 1.0.0x (and also in general for scala-native various releases)

@sjrd
Copy link
Collaborator

sjrd commented Jul 4, 2017

That's not possible. Please follow the instructions for cross-compilation in the release notes of Scala.js 1.0.0-M1, at https://www.scala-js.org/news/2017/07/03/announcing-scalajs-1.0.0-M1/#enabling-sbt-crossproject-even-with-scalajs-06x

If it were at all possible, you can imagine that I would have made it work.

@mdedetrich
Copy link
Author

mdedetrich commented Jul 4, 2017

I understand its not possible now, is it something planned to be possible at some point? (note that I am speaking in a generic sense, i.e. as we now cross build against multiple scala versions we should be able to build against multiple scala.js versions)

@sjrd
Copy link
Collaborator

sjrd commented Jul 4, 2017

No it's not planned and won't be possible at any point. Again, if it were at all possible to make it eventually possible, I would have done so already.

@mdedetrich
Copy link
Author

So how exactly are we meant to handle cross compiling against multiple scala.js/scala-native versions, I assume we have to resort to something like a bash script to manually override build files or to explore other options?

@sjrd
Copy link
Collaborator

sjrd commented Jul 4, 2017

@mdedetrich
Copy link
Author

Okay thanks, will also probably have to do the same with scala-native

@sjrd
Copy link
Collaborator

sjrd commented Nov 22, 2017

Another possibility is to use sbt-dynscalajs and a similar solution for Scala Native.

In any case, the design of sbt-crossproject is completely antithetical to supporting several versions of the platform plugins. If someone wants to tackle this, they should either use the environment variables or sbt-dynscalajs or come up with their own solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants