Kotlin: Add Kotlin 2.2.20 support#20114
Merged
igfoo merged 7 commits intogithub:mainfrom Jul 24, 2025
Merged
Conversation
Ran "../tools/bazel mod tidy"
It has been removed in 2.2.20.
We'll need a proper fix for this, but this will keep things working in the meantime.
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for Kotlin version 2.2.20 to the CodeQL extractor, expanding the supported Kotlin version range from 2.2.0x to 2.2.2x.
- Adds Kotlin 2.2.20-Beta1 compiler and stdlib dependencies
- Updates version compatibility checks and documentation
- Implements version-specific utility functions for the new Kotlin version
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| java/ql/lib/change-notes/2025-07-23-kotlin-2.2.20.md | Documents the feature addition in change notes |
| java/ql/integration-tests/kotlin/all-platforms/diagnostics/kotlin-version-too-new/diagnostics.expected | Updates maximum supported version in error message |
| java/kotlin-extractor/versions.bzl | Adds 2.2.20-Beta1 to supported versions list |
| java/kotlin-extractor/src/main/kotlin/utils/versions/v_2_2_20-Beta1/getJvmModuleNameForDeserializedDescriptor.kt | Implements version-specific utility function for 2.2.20 |
| java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_6_0/getJvmModuleNameForDeserializedDescriptor.kt | Adds corresponding utility function for version 1.6.0 |
| java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt | Removes direct import, likely to use version-specific implementation |
| java/kotlin-extractor/deps/*.jar | Adds Kotlin 2.2.20-Beta1 compiler and stdlib JAR files |
| java/kotlin-extractor/BUILD.bazel | Adds compiler API deprecation warning suppression for 2.2.20+ |
| docs/codeql/reusables/supported-versions-compilers.rst | Updates documentation to reflect new version support |
| MODULE.bazel | Registers new Kotlin 2.2.20-Beta1 dependencies |
| --- | ||
| category: feature | ||
| --- | ||
| * Kotlin versions up to 2.2.2\ *x* are now supported. |
There was a problem hiding this comment.
The backslash before the asterisk appears to be a formatting error. It should be '2.2.2x' without the backslash.
Suggested change
| * Kotlin versions up to 2.2.2\ *x* are now supported. | |
| * Kotlin versions up to 2.2.2*x* are now supported. |
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.
No description provided.