Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Support multiple scala-js/scala-native versions #47
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)
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.
This was referenced
Jul 4, 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.