Skip to content

Conversation

@kyri-petrou
Copy link
Contributor

Resolves #1795 . This PR adds support Scala Native support for the jsoniter module. One caveat of this is that jsoniter-scala added support for SN in 2.17.4+, and these versions are not published for Scala 2.11. Are we happy to stop publishing Scala 2.11 versions of the jsoniter (JVM) module, or should we use the old version for JVM and the latest for JS / Native?

I'll create a PR to master to port these changes to master as well once this one has been approved

@adamw
Copy link
Member

adamw commented Apr 7, 2023

The build failures are due to sbt/sbt#7202, so we're waiting to see what's up with JFrog :)

@kyri-petrou
Copy link
Contributor Author

Issue seems to be marked as resolved now. @adamw should I push an empty commit to trigger the builds or are you happy to restart it?

@kyri-petrou
Copy link
Contributor Author

kyri-petrou commented Apr 8, 2023

Unrelated to this PR, but I noticed the following warning when building Scala 3 modules:

Bad option '-target:jvm-11' was ignored

With Scala 2.13 I get the following warning:

-target is deprecated: Use -release instead to compile against the correct platform API.

Should that flag be changed to -release:11 instead (which also works with Scala 3)? I can make the change in this PR or open this as a separate issue / PR if it's an issue

@adamw adamw merged commit 890a1e7 into softwaremill:v3 Apr 11, 2023
@adamw
Copy link
Member

adamw commented Apr 11, 2023

Ok seems to be fixed now - thanks :)

As for the build flags - yeah, some cleanup is needed to adjust them for the specific versions. If you'd have the time to work on that, would be most appreciated :)

@adamw
Copy link
Member

adamw commented Apr 11, 2023

v3 release in progress

@kyri-petrou kyri-petrou deleted the jsoniter-scala-native branch April 11, 2023 09:38
@kyri-petrou
Copy link
Contributor Author

If you'd have the time to work on that, would be most appreciated :)

Can do 👍. Do you think it's worth cleaning up both v3 and v4 or shall we just focus on v4?

@adamw
Copy link
Member

adamw commented Apr 11, 2023

I think I'd focus on v4 :)

adamw pushed a commit that referenced this pull request Apr 10, 2025
While trying to upgrade to sttp4 in Caliban, I found that the jsoniter
module was not published for Scala Native (it was in sttp3 since
#1796).


Before submitting pull request:
- [x] Check if the project compiles by running `sbt compile`
- [x] Verify docs compilation by running `sbt compileDocs`
- [x] Check if tests pass by running `sbt test`
- [x] Format code by running `sbt scalafmt`
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.

2 participants