Skip to content

chore(deps): update dependency org.jetbrains.kotlin:kotlin-gradle-plugin to v2.4.20 [security] - #643

Closed
dd-octo-sts[bot] wants to merge 1 commit into
developfrom
engraver-auto-version-upgrade/renovate/kotlin20
Closed

dd-octo-sts[bot] wants to merge 1 commit into
developfrom
engraver-auto-version-upgrade/renovate/kotlin20

Conversation

@dd-octo-sts

@dd-octo-sts dd-octo-sts Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
org.jetbrains.kotlin:kotlin-gradle-plugin (source) dependencies minor 2.0.21 → 2.4.20

Warning

Some dependencies could not be looked up. Check the warning logs for more information.

🚨 Security Vulnerability Fix

Severity: MEDIUM

This PR addresses a detected security vulnerability. Please review and merge promptly.

@dd-octo-sts
dd-octo-sts Bot marked this pull request as ready for review October 12, 2026 20:08
@dd-octo-sts
dd-octo-sts Bot requested review from a team as code owners October 12, 2026 20:08
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-12T20:11:31.832265Z 3e1b514 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3e1b514c71

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread gradle/libs.versions.toml

# Commons
kotlin20 = "2.0.21"
kotlin20 = "2.4.20"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep the Kotlin 2.0 toolchain on a 2.0 release

This alias supplies both kotlinGradlePlugin20 and kotlinCompilerEmbeddable20 to the common and kcp-kotlin20 modules, so changing it to 2.4.20 makes the Kotlin 1.9/2.0 compatibility artifact and its tests compile against the 2.4 compiler API. DatadogKotlinCompilerPluginSupport.getPluginArtifact() still selects that artifact for Kotlin 1.9 and 2.0 consumers, where compiler-plugin APIs are version-sensitive and can fail to load or link; the tests also stop exercising the promised 2.0 compatibility. Keep this version on 2.0.x and update any vulnerable Gradle-plugin dependency independently.

Useful? React with 👍 / 👎.

@datadog-prod-us1-4 datadog-prod-us1-4 Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bits Code Review: FAIL

The shared Kotlin version upgrade makes legacy compiler-plugin modules depend on Kotlin 2.4.20, which removed their required ComponentRegistrar API. This prevents the common module and its dependents from compiling.

Open Bits AI session

🤖 Bits Code Review · Commit 3e1b514

Comment thread gradle/libs.versions.toml

# Commons
kotlin20 = "2.0.21"
kotlin20 = "2.4.20"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Preserve a compatible compiler version for legacy modules

The kotlin20 entry also controls kotlinCompilerEmbeddable20, used to compile the common and Kotlin 2.0 compiler-plugin modules. Their legacy registrar requires ComponentRegistrar, which Kotlin 2.4.20 removed, as documented by the existing Kotlin 2.4 linkage test. This upgrade therefore prevents the common module from compiling and blocks its dependent modules. Preserve the compatible legacy compiler pin; any security upgrade must account for these shared dependencies.

Suggested change
kotlin20 = "2.4.20"
kotlin20 = "2.0.21"

Was this helpful? React 👍 or 👎
🤖 Bits Code Review · Open Bits AI session

@0xnm 0xnm closed this Oct 13, 2026
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.

1 participant