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
@@ -1,7 +1,7 @@
[versions]

# 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 πŸ‘Β / πŸ‘Ž.

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

kotlin21 = "2.1.21"
kotlin22 = "2.2.20"
kotlin23 = "2.3.20"
Expand Down
Loading