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

Comments

Projects
None yet
2 participants
@mdedetrich
Copy link

mdedetrich commented Jul 4, 2017

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

This comment has been minimized.

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

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

This comment has been minimized.

Copy link

mdedetrich commented Jul 4, 2017

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

This comment has been minimized.

@mdedetrich

This comment has been minimized.

Copy link

mdedetrich commented Jul 4, 2017

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

@sjrd

This comment has been minimized.

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