Skip to content

Kotlin: Add Kotlin 2.2.20 support #20114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 24, 2025
Merged

Conversation

igfoo
Copy link
Contributor

@igfoo igfoo commented Jul 23, 2025

No description provided.

@igfoo igfoo marked this pull request as ready for review July 23, 2025 16:06
@Copilot Copilot AI review requested due to automatic review settings July 23, 2025 16:06
@igfoo igfoo requested review from a team as code owners July 23, 2025 16:06
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
Copy link
Preview

Copilot AI Jul 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot uses AI. Check for mistakes.

Copy link
Contributor

@IdrissRio IdrissRio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@igfoo igfoo merged commit 621b483 into github:main Jul 24, 2025
30 of 35 checks passed
@igfoo igfoo deleted the igfoo/kotlin-2.2.20 branch July 24, 2025 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants