Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Add scala 3 support for uPickle, Jackson and Circe #757

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

DieBauer
Copy link
Contributor

@DieBauer DieBauer commented Nov 19, 2022

uPickle needed to get rid of a private lazy val.

Jackson got rid off the TypeTag, it seems ClassTag suffices.

Circe only has issues with the test and an implicit. This 'bug' is fixed in scala 3 and the specific test has been split up in scala-2 and scala-3 test sources.

This PR builds on top off #754 because some decisions have been made here to make the project compile for 3.
#755

@DieBauer DieBauer mentioned this pull request Nov 19, 2022
10 tasks
@DieBauer
Copy link
Contributor Author

DieBauer commented Nov 21, 2022

I missed a comma in my commits. build.sbt should be working now :)
And rebased to master.

Get rid of private lazy val as this doesn't compile for Scala 3.
```
non-private method unmarshaller in trait UpickleCustomizationSupport refers to private lazy value apiInstance
```
by making the def api, a val, we work around this limitation
Do not use typetag for Jackson but classtag
import scala.concurrent.Await
import scala.concurrent.duration.DurationInt

final class CirceSupportSpec2

Choose a reason for hiding this comment

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

could you rename the file to CirceSupportSpec2.scala (likewise in scala-2 dir)?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants