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

Does CBT support cross building against multiple scala-js/scala-native versions? #544

Open
mdedetrich opened this issue Jul 4, 2017 · 2 comments

Comments

@mdedetrich
Copy link

mdedetrich commented Jul 4, 2017

Due to portable-scala/sbt-crossproject#47, I am investigating using CBT for https://github.com/mdedetrich/scalajson to simplify the build.

For context, ScalaJSON is designed to be ultra stable and release new versions as infrequently as possible, which means that when a new scala-js version comes out (as an example), I want to be able to release ScalaJSON for this new version of scala-js without having to bump the version of ScalaJSON.

Is this possible right now? And if not is it on the roadmap (especially for 1.0.0 release?) I see this as a killer feature over SBT, as this current limitation in SBT is going to really complicate the build for scalaJSON (have to basically override settings in the build files with environment variables which is quite ugly)

@mdedetrich mdedetrich changed the title Does CBT support cross building against multiple scala-js/scala-native versions Does CBT support cross building against multiple scala-js/scala-native versions? Jul 4, 2017
@cvogt
Copy link
Owner

cvogt commented Jul 5, 2017

There is no scala-native plugin right now (#473). Shouldn't be hard to add though.

@ShaneDelmore and I are working on an extended cross build example (and possibly some minor bug fixes).

@cvogt
Copy link
Owner

cvogt commented Jul 5, 2017

Or in short: Yes this should totally be possible, but hasn't been tested very well right now. Basically the idea is creating a Seq of builds, which are different subclasses of the same build with different customizations. Calling a task on the Seq from bash, e.g. cbt configs.package will run package for each of them.

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