-
Notifications
You must be signed in to change notification settings - Fork 21
Feat/scala3 hermant #872
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
Feat/scala3 hermant #872
Conversation
…eat/scala3-hermant
wohoo finally green |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for putting in the effort. But aren't we too hard on ourselves with Scala 3 as the default?
@@ -25,13 +31,13 @@ object BuildSettings { | |||
description := "Functional programming toolkit for building server applications in Scala.", | |||
licenses := Seq("MIT" -> url("https://raw.githubusercontent.com/avast/scala-server-toolkit/master/LICENSE")), | |||
developers := List(Developer("jakubjanecek", "Jakub Janecek", "[email protected]", url("https://www.avast.com"))), | |||
scalaVersion := "2.13.8", | |||
crossScalaVersions := List(scalaVersion.value, "2.12.15"), | |||
scalaVersion := scala3, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about having Scala 3 as the default is a good idea.
Wouldn't having 2.13 as the default save us a lot of headache with Scalafix (among other things)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idk, in my view scala3 is the future so i would vote for shaping the code towards that ... i would also like to move further towards scala3 code in future PRs using compiler toggles etc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My first choice would probably also be 2.13
for now but if everything works and we can compile to both versions the default is probably not that important.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it only makes a big difference for mdoc imho ... if its all the same to you, i would try to coarse the code into scala3 compatible code as much as possible so i think scala3 default is the best way to go
(marked as draft so that it's not merged until everything is in place) |
ok i think this is ready for review if anyone else is interested |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@@ -25,13 +31,13 @@ object BuildSettings { | |||
description := "Functional programming toolkit for building server applications in Scala.", | |||
licenses := Seq("MIT" -> url("https://raw.githubusercontent.com/avast/scala-server-toolkit/master/LICENSE")), | |||
developers := List(Developer("jakubjanecek", "Jakub Janecek", "[email protected]", url("https://www.avast.com"))), | |||
scalaVersion := "2.13.8", | |||
crossScalaVersions := List(scalaVersion.value, "2.12.15"), | |||
scalaVersion := scala3, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My first choice would probably also be 2.13
for now but if everything works and we can compile to both versions the default is probably not that important.
Co-authored-by: Jakub Janeček <[email protected]>
Solved all the comments, im going to merge this once all checks pass. Next steps for me is to massage the code into more scala 3 style of code. I will leave it up to @jakubjanecek to release this once he feels like it |
thanks for taking the time to review |
attempt at scala3 support based on
feat/scala3
.What is it about:
Whats missing:
What had to change:
check
task we now only checkmdoc
task for scala3 (we used to do it for all scala versions) - i don't know how to check it for all considering source code is now diverging for scala2 and scala3