oss-review-toolkit / ort

A suite of tools to automate software compliance checks.
https://oss-review-toolkit.org
Apache License 2.0
1.61k stars 313 forks source link

Migrate from Jackson to kotlinx-serialization (KxS) #3904

Open sschuberth opened 3 years ago

sschuberth commented 3 years ago

Benefits of kotlinx-serialization:

Blockers for the migration to kotlinx-serialization:

Current Gradle modules that still depend on Jackson (edited as needed):

sschuberth commented 3 years ago

FYI @mnonnenmacher, as we recently talked about this.

sschuberth commented 3 years ago

My idea is to start with migrating the independent clients from Jackson to kotlinx-serialization, just to see how it looks like and / or what the performance changes are. For the fun of it, I started with the vulnerable-code client in https://github.com/oss-review-toolkit/ort/tree/vc2kxs.

sschuberth commented 3 years ago

For the fun of it, I started with the vulnerable-code client in https://github.com/oss-review-toolkit/ort/tree/vc2kxs.

See https://github.com/oss-review-toolkit/ort/pull/4353.

sschuberth commented 2 years ago

Looks like they changed their mind: https://github.com/Kotlin/kotlinx.serialization/pull/2111

sschuberth commented 1 year ago

Looks like they changed their mind: Kotlin/kotlinx.serialization#2111

This has been merged 😀

sschuberth commented 1 year ago

With kotlinx-serialization 1.5.0 setting a JSON naming strategy is now fully supported.

sschuberth commented 1 year ago

An interesting article about why not to use Jackson: https://blog.lahteenmaki.net/making-jackson-tolerable.html