-
Notifications
You must be signed in to change notification settings - Fork 31
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
Comments
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. |
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) |
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. |
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? |
Okay thanks, will also probably have to do the same with scala-native |
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. |
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)
The text was updated successfully, but these errors were encountered: