Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Commons
kotlin20 = "2.0.21"
kotlin21 = "2.1.21"
kotlin21 = "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.1 compatibility slot on 2.1

This version key also supplies kotlinCompilerEmbeddable21 and kotlinGradlePlugin21, so the dd-sdk-android-gradle-plugin-kcp-kotlin21 module is now compiled against Kotlin 2.4.20 rather than 2.1.x. That module still imports and registers ComponentRegistrar, while the Kotlin 2.4 implementation explicitly documents that this API was removed in 2.4.20 and uses CompilerPluginRegistrar instead; consequently the test:kotlin21 CI job cannot compile the dedicated 2.1 module. Leave this compatibility slot on a 2.1 release; kotlin24 already provides the 2.4.20 dependency.

Useful? React with 👍 / 👎.

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 the Kotlin 2.1 compiler dependency

Building dd-sdk-android-gradle-plugin-kcp-kotlin21 now resolves kotlin-compiler-embeddable 2.4.20 because it shares this version entry. That compiler removed ComponentRegistrar, which the module still imports, registers with AutoService, and inherits through DatadogPluginRegistrar, so compilation fails and blocks building the plugin. Keep this artifact’s compiler dependency on a compatible 2.1 version and separate it from the Gradle-plugin security upgrade; that requires changing dependency references beyond this diff line.

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

kotlin22 = "2.2.20"
kotlin23 = "2.3.20"
kotlin24 = "2.4.20"
Expand Down
Loading