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

Default Scala version should be 2.12 (instead of 2.11) #703

Closed
natansil opened this issue Feb 27, 2019 · 8 comments
Closed

Default Scala version should be 2.12 (instead of 2.11) #703

natansil opened this issue Feb 27, 2019 · 8 comments

Comments

@natansil
Copy link
Contributor

Currently the default version is 2.11.12:

But according to JB 2018 survey only 30% used 2.11, while 64% used 2.12

I think it's time to change the default...

@ittaiz
Copy link
Member

ittaiz commented Feb 28, 2019

I agree
@johnynek wdyt?

@johnynek
Copy link
Member

I agree. I’d like CI to check both 2.11 and 2.12 if possible.

I assume wix is now on 2.12?

@ittaiz
Copy link
Member

ittaiz commented Mar 1, 2019 via email

@igorgatis
Copy link

At least please make it easy to select, like scala_repositories(version="2.11") and scala_repositories(version="2.12")

@johnynek
Copy link
Member

@igorgatis you have seen this right: https://github.com/bazelbuild/rules_scala#selecting-scala-version

Is it that too much?

My feeling is that repo configuration is so rarely done, this isn't a major problem.

@wisechengyi
Copy link
Contributor

Twitter has also been on 2.12 for a while.

Anecdotally I worked on some scalac option related changes having incompatibilities with 2.11.x, which would be resolved if the whole repo switches to 2.12, or at least as the default.

Afacit #962 should not be blocking this and can be worked on separately if needed still, as most folks are on 2.12 already.

Is there objection to switch to 2.12 repo wide?

@smparkes
Copy link
Contributor

smparkes commented Jun 5, 2020

#962 is close for now and this doesn't block it. But FWIW:

if needed still, as most folks are on 2.12 already

There's a lot of existing spark code on 2.11. For that community, there's likely to be a long tail of users so maintainers of spark libraries will likely have to support 2.11 for some time.

@ittaiz
Copy link
Member

ittaiz commented Jun 5, 2020

I agree about spark and that is why I’m happy we enabled the “test version” test on CI which gives us some sanity into 2.11

@ittaiz ittaiz closed this as completed in 5289991 Jun 12, 2020
SocksDevil pushed a commit to SocksDevil/rules_scala that referenced this issue Jul 6, 2020
)

* scala 2.12.10 is default version, closes bazelbuild#703

* specs2 matcher to try catch

* default 2.12.11 (latest)

* update golden coverage file
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

6 participants