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

Upgrade to Scala 2.13. Fix #11 #12

Closed

Conversation

FrancoisDevemy5
Copy link

@FrancoisDevemy5 FrancoisDevemy5 commented Jun 29, 2021

Hello @khatkar

This is my attempt to bring ipaddr to Scala 2.13 and fix #11.

To upgrade to Scala 2.13, I have ported IpSet to the new collection framework, following the official guide.
I also split IpSet into two files, one for 2.12 and earlier and one for 2.13 and later (again following the guide).
I also modified other files to be compatible with the new collections (e.g. toStream -> to(LazyList)) and resolved some deprecation warnings on internal code, but not when it touched the API.

I didn't modify .travis.yml, which should be updated, as I did not know how to proceed to test that.
I believe just adding - 2.13.6 under scala might do the trick.

Here are all the libs the were upgraded to be compatible with 2.13:

Component Old version New version
Scala 2.12.6 2.13.6
SBT 1.2.1 1.5.3
scala-logging 3.9.0 3.9.3
scalatest 3.0.5 3.0.9

I hope this can be useful for the community.

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.

Scala 2.13 build
1 participant