Open
Fix CI warnings: update platform version compatibility and resolve Kotlin deprecations#19
Conversation
…deprecated methods Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix CI error in Gradle plugin verification
Fix CI warnings: update platform version compatibility and resolve Kotlin deprecations
Dec 13, 2025
Collaborator
|
@copilot fix failed CI check: |
…ompatibility Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
Contributor
Author
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.
The CI build was failing with 13 compilation warnings related to platform version mismatch, experimental coroutines API usage, deprecated Kotlin methods, and parameter naming. Additionally, a plugin compatibility issue was causing the plugin to fail loading.
Changes
pluginSinceBuildfrom213.*to221(without wildcard) to properly support IntelliJ Platform 2022.1+ and ensure compatibility with specific builds like IC-221.5080.210@OptIn(ExperimentalCoroutinesApi::class)to 4 classes implementing coroutines-based interfacestoLowerCase()→lowercase()in 2 files (3 occurrences)equals(obj: Any?)→equals(other: Any?)to match supertype signatureExample of coroutines opt-in fix:
The key fix for the plugin loading issue was removing the wildcard from
221.*and using just221, which properly indicates "build 221 or newer" and is compatible with all 221.x builds.Original prompt
This section details on the original issue you should resolve
<issue_title>[bug] fix CI error</issue_title>
<issue_description>See: https://github.com/will7200/casbin-idea-plugin/actions/runs/20194389608/job/57977410553?pr=17