Skip to content
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

Introduce version compatibility checker into the plugin #1810

Closed
altavir opened this issue Dec 29, 2021 · 2 comments
Closed

Introduce version compatibility checker into the plugin #1810

altavir opened this issue Dec 29, 2021 · 2 comments
Labels

Comments

@altavir
Copy link

altavir commented Dec 29, 2021

What is your use-case and why do you need this feature?

The major part of errors and strange behaviors in serialization comes from inconsistencies between versions of the plugin and actually used versions of the library or even variations of library versions between flavors (core and Json for example). It usually could be solved by carefully studying the classpath, but the problem is that the errors produced by those inconsistencies are very hard to understand.

Describe the solution you'd like

Introduce a version checking task in the kotlin Gradle plugin, which will validate the compiler version against all used library versions (not necessary only serialization) and throw an error during the build phase if something incompatible is found. The compatibility table could be stored externally so one could update it without updating the plugin. If the table is not available, the version check could be bypassed or a default hard-coded table is used.

@sandwwraith
Copy link
Member

We already have this check for JVM, see points 2 and 3 here: https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/compatibility.md#compatibility-with-kotlin-compiler-plugin

You're complaining about other targets, right?

@sandwwraith
Copy link
Member

Should be solved with #2053 and eventually with #2797

@sandwwraith sandwwraith closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants