-
Notifications
You must be signed in to change notification settings - Fork 580
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
support scala 3 build for util-test #306
base: develop
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #306 +/- ##
===========================================
+ Coverage 49.29% 49.30% +0.01%
===========================================
Files 322 322
Lines 18523 18522 -1
Branches 1055 1063 +8
===========================================
+ Hits 9131 9133 +2
+ Misses 9392 9389 -3
Continue to review full report at Codecov.
|
build.sbt
Outdated
|
||
val defaultScalaSettings = Seq( | ||
scalaVersion := _scalaVersion, | ||
crossScalaVersions := _crossScalaVersions | ||
) | ||
val defaultScala3EnabledSettings = Seq( | ||
scalaVersion := _scalaVersion, | ||
crossScalaVersions := _crossScalaVersions ++ Seq("3.0.2-RC1") | ||
crossScalaVersions := _crossScalaVersions ++ Seq("3.1.3") |
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.
fa80c54
to
67eea34
Compare
CI failed because sbt-scoverage was updated to 2.0.0 here. Once |
@pjfanning, the scoverage thing should be fixed now. |
67eea34
to
49de52c
Compare
I've rebased this onto |
This PR builds on #304 so that should be merged before this one imo.
There is no Scala 3 compatible version for
"org.scalatestplus" %% "mockito-1-10"
, so I had to use"org.scalatestplus" %% "mockito-3-4" % "3.2.9.0"
. This means I upgraded Scalatest to3.2.9
and Mockito to3.4.x
. This doesn't really break any code inutil-test
but consumers ofutil-test
(e.g.finagle
ortwitter-server
) might also have to upgrade those test dependencies.Since Scala 3 requires Scalatest
3.2.x
and Mockito1.10.x
is ancient at this point, I find this acceptable.The second point is that I couldn't find a direct replacement for
org.mockito.exceptions.Reporter
from Mockito1.10.x
. Since it was only used to throw a predefined exception, I inlined the error message. I hope this is acceptable.