-
Notifications
You must be signed in to change notification settings - Fork 57
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
Update Kotlin to 2.0 #327
Update Kotlin to 2.0 #327
Conversation
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.
Just some minor comments :)
build-logic/src/main/kotlin/kotlinx/io/conventions/kotlinx-io-publish.gradle.kts
Outdated
Show resolved
Hide resolved
Does this change retain compatibility with 1.9.x? |
Co-authored-by: Oleg Yukhnevich <whyoleg@gmail.com>
@lppedd, For JVM, there are some forward compatibility guarantees: https://kotlinlang.org/docs/kotlin-evolution.html#evolving-the-binary-format; but for KMP, as per JetBrains/kotlin-web-site#4216, there are no such guarantees. UPD: for the Wasm, an issue could be fixed to some extent by restricting stdlib version on the consumer side so it remains 1.9.x ( |
@fzhinkin so basically even setting
wouldn't help? I'm just asking that because libraries suddenly requiring 2.0+ means whoever is using 1.9.x can't update anything. I've seen coroutines doing the same, serialization too. This seems a bit risky imo. |
Neither of these options affects binary compatibility, so no, unfortunately, that won't help.
For kotlinx-io, the new release will only switch the Kotlin version, so those who can't update the version in their projects can continue using Note that in terms of compatibility, there's nothing new here, and the same happened previously when libraries updated the Kotlin version from 1.8 to 1.9, for example. |
No description provided.