Verify compatibility with K2 mode for Kotlin-dependent plugins #1150
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.
Plugin that depends on the Kotlin plugin and does not declare compatibility will emit a Compatibility Problem.
KotlinPluginMode
property in plugins that indicates the K1/K2 compatibility level. UseImplicit
for missing value in existing plugins. UseInvalid
for plugins that declare no compatibility with both K1 and K2 compatibility levels.UndeclaredKotlinK2CompatibilityMode
plugin problem with Warning level for any plugin. The actual plugin problem severity depends on the Platform version:CompatibilityProblem
reported by the Plugin Verifier. More specifically, it is an instance ofUndeclaredKotlinK2CompatibilityModeProblem
in the Plugin Verifier.KotlinCompatibilityModeProblemResolver
class. Thestructure
library is unaware of the IDE version, hence the decision is deferred to the Plugin Verifier.KotlinCompatibilityModeProblemResolver
will remove all instances ofUndeclaredKotlinK2CompatibilityMode
plugin structure warnings after remapping, as not to cause duplicate compatibility problems.InvalidKotlinPluginMode
plugin problem with Error level for any plugin. This happens when bothsupportsK1
andsupportsK2
are set tofalse
.See MP-6825