Fix Module was compiled with an incompatible version of Kotlin #2795
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.
While upgrading to Gradle 7.2, the version of the Kotlin gradle plugin
was also upgraded to 1.5.31 to ensure plugin compatibility.
What was overlooked is that this means an upgrade of the Kotlin language
level, which is undesirable in a patch release.
This is made visible in donwstream projects still relying on Kotlin 1.3
with the following message for instance:
This commit fixes the situation by enforcing Kotlin version 1.3 for both
apiVersion
andlanguageVersion
. It results in metadata at version1.1.18, but local tests show that it should this time be compatible with
expected version 1.1.16.
Fixes #2793.