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

Scala 2.13 support #77

Merged
merged 6 commits into from
Nov 21, 2018
Merged

Scala 2.13 support #77

merged 6 commits into from
Nov 21, 2018

Conversation

krzemin
Copy link
Member

@krzemin krzemin commented Aug 27, 2018

As Scala 2.13 is going to be released soon, we need to cross support 2.13 too. I tried to play with latest available milestone (2.13.0-M4) and it seems that number of required changes in quite short, most of them caused by new standard library.

Deprecation of Traversable

We may use Iterable as well, covering all of the use cases. This doesn't even need special changes to 2.11/2.12 codebase.

No support for collection.to[AnotherCollection]

But collection.to(AnotherCollection) works great. We need to generate different code, depending on Scala version to keep the same semantics. But in 2.13 we need to use companion ref hack...

Unsupported compiler options

In 2.13.0-M4 it seems following two flags are not understood by scalac: -Yno-adapted-args, -Xexperimental.

Dependencies

Before merging, we need to wait for following dependencies:

  • [ ] scalatest (already published snapshot 3.0.6-SNAP2 for 2.13.0-M4) switched to utest
  • [ ] scalapb not dependent on scalapb any more
  • [ ] scalatex not needed for cross compilation
  • scoverage (bumped sbt-scoverage to 1.6.0-M5)

@krzemin krzemin changed the title Scala 2.13 support [WiP] Scala 2.13 support Aug 27, 2018
@codecov-io
Copy link

codecov-io commented Sep 8, 2018

Codecov Report

Merging #77 into master will decrease coverage by 0.57%.
The diff coverage is 71.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #77      +/-   ##
==========================================
- Coverage   92.51%   91.94%   -0.58%     
==========================================
  Files           7        7              
  Lines         294      298       +4     
  Branches       59       63       +4     
==========================================
+ Hits          272      274       +2     
- Misses         22       24       +2
Impacted Files Coverage Δ
.../scalaland/chimney/internal/DerivationGuards.scala 100% <100%> (ø) ⬆️
...scalaland/chimney/internal/TransformerMacros.scala 87.56% <50%> (-0.8%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3b627cd...3454e41. Read the comment docs.

Copy link
Member

@MateuszKubuszok MateuszKubuszok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the commented out parts. We might figure out some way or working around pb or drop testing them if that is a blocker for a release.

@krzemin krzemin changed the title [WiP] Scala 2.13 support Scala 2.13 support Nov 21, 2018
@krzemin
Copy link
Member Author

krzemin commented Nov 21, 2018

Finally dropped scalatest, scalapb and bumped versions of few libraries. I think now it's ready to merge.

@krzemin krzemin merged commit 046e4fc into master Nov 21, 2018
@krzemin krzemin deleted the feature/scala-2.13 branch November 21, 2018 15:33
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

Successfully merging this pull request may close these issues.

3 participants