-
Notifications
You must be signed in to change notification settings - Fork 282
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
Project with multiple scala versions #393
Comments
There is no support for this now, and it would be non-trivial. What we do at Stripe is have separate repositories for scala 2.11 and 2.12 code. There is a 2.12 branch of these rules: |
Thanks, just researching and evaluating bazel. We had such multiple scala versions mess in the past. |
FYI, brief description of how https://github.com/andyscott/rules_scala_annex decided to implement multiple Scala versions in a single workspace: A
And an easy way for users to define Scala versions.
And all scala_* rules have a Actually, an example of use is rules_scala_annex's own runners (scalac, scalafmt, proto). They have deps and certain Scala version requirements, and so they use a Scala version ( |
@pauldraper Are there plans to eventually merge the two efforts? |
No clear plan as of this time; I just wanted to share a possible approach for this project. |
I think the best approach (if you can wait) is to hold on for Bazel’s
support for activating multiple toolchains on the same run from the command
line.
…On Wed, 3 Oct 2018 at 17:45 Paul Draper ***@***.***> wrote:
No clear plan as of this time; I just wanted to share a possible approach
for this project.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#393 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIF2lgwB7e4DsIKU_LZrwzk6aJtRh3ks5uhM1ugaJpZM4Rf-7w>
.
|
It it currently possible to have a single project with multiple scala versions? Spark (for example) is one of the projects that lags behind in supported scala versions. So that one team could be using scala 2.12 and the other 2.11 with spark.
The text was updated successfully, but these errors were encountered: