Add API and language version to backwards compatibility section#52
Open
sarahhaggarty wants to merge 1 commit into
Open
Add API and language version to backwards compatibility section#52sarahhaggarty wants to merge 1 commit into
sarahhaggarty wants to merge 1 commit into
Conversation
kunyavskiy
reviewed
Jul 15, 2026
| version of the Kotlin standard library. | ||
|
|
||
| For the JVM, a library compiled with a given language and API version is compatible with that version and the next later version. | ||
| For example, if you configure version 2.1, consumers can compile against and run the library with Kotlin 2.1.0 – 2.2.0. |
Collaborator
There was a problem hiding this comment.
For example, if you configure languge version 2.3 and api version 2.1, consumers would need to use Kotlin 2.2.0 or newer to compile code using your library, and would need to provide Kotlin standard library 2.1.0 or newer at runtime to run it.
kunyavskiy
reviewed
Jul 15, 2026
|
|
||
| For the JVM, a library compiled with a given language and API version is compatible with that version and the next later version. | ||
| For example, if you configure version 2.1, consumers can compile against and run the library with Kotlin 2.1.0 – 2.2.0. | ||
| On other platforms, a library compiled with a given language and API version is only compatible with that version. |
Collaborator
There was a problem hiding this comment.
On other platform LV/AV don't affect compatibility, you always need to be at least same major version (i.e. 2.2.20 vs 2.2 is fine, but 2.3 vs 2.2.20 is not).
There is an initiaive on proper support of LV - KT-76131. Not sure if we should mention it, as it's now a bit shelved.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds details about checking compatibility of API and language versions to the backwards compatibility section.