Skip to content

Upgrade to Kotlin 2.3.20#2918

Merged
Oleksandr Karpovich (eymar) merged 4 commits into
jb-mainfrom
ok/bump_kotlin_2_3_20
Mar 26, 2026
Merged

Upgrade to Kotlin 2.3.20#2918
Oleksandr Karpovich (eymar) merged 4 commits into
jb-mainfrom
ok/bump_kotlin_2_3_20

Conversation

@eymar

@eymar Oleksandr Karpovich (eymar) commented Mar 25, 2026

Copy link
Copy Markdown
Member
  • Update binary compatibility validator usages of Kotlin APIs
  • Move to context parameters in compose runtime tests
  • Update messages.ignore to capture the new kotlinc warning in wasm code
  • Make sure that kotlinCompiler is only added as a compileOnly dependency. This makes sure that buildSrc-test that consumes this project does not get Kotlin compiler on the claspath.
  • Update error handling for missing IRs for Kotlin 2.3.20

Bug: 488124257
Test: ./gradlew bOS --dry-run
Change-Id: I900c835cfc452f3a30489f230183ce33434d8e2b

Cherry-picked androidx@55c298b

Fixes https://youtrack.jetbrains.com/issue/CMP-9995/Update-Kotlin-version-in-all-repositories-to-2.3.20

NOTE: DO NOT SQUASH. USE MEREGE COMMIT!

Testing

N/A

Release Notes

Migration Notes - Web

  • Kotlin 2.3.20 is required when using Compose Multiplatform with Kotlin/JS or Kotlin/Wasm

Aurimas (liutikas) and others added 4 commits March 25, 2026 17:07
- Update binary compatibility validator usages of Kotlin APIs
- Move to context parameters in compose runtime tests
- Update messages.ignore to capture the new kotlinc warning in wasm code
- Make sure that kotlinCompiler is only added as a compileOnly dependency.
  This makes sure that buildSrc-test that consumes this project does not
  get Kotlin compiler on the claspath.
- Update error handling for missing IRs for Kotlin 2.3.20

Bug: 488124257
Test: ./gradlew bOS --dry-run
Change-Id: I900c835cfc452f3a30489f230183ce33434d8e2b
Comment thread gradle/libs.versions.toml
kotlin23 = "2.3.20"
kotlin = "2.3.20"
kotlinBenchmark = "0.4.14"
kotlinGradlePluginAnnotations = "2.3.10"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Any reason to keep it (and a few more places) of the previous version?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I noticed that in aosp these were not updated (it's even 1.9.24 there), so probably no strong reason to change them on our side too.

Comment thread gradle/verification-metadata.xml
Comment thread gradle.properties

# A special workaround introduced in Kotlin 2.3.20 to support the Compose redirects.
# See https://youtrack.jetbrains.com/issue/KT-83917
kotlin.internal.kmp.allowMatchingByRequestedCoordinatesInMetadataTransformations=true No newline at end of file

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Let's move it above artifactRedirection.*, closed to kotlin flags (but under # JetBrains fork only properties)

PS 🙈

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

it's really about redirects. That's why added it here. It's still in the scope of JetBrains fork only properties.
I'd like to keep it close to redirect properties. Either above or below it.
Placing it below seems better because the context of the redirects is already introduced earlier.

@eymar Oleksandr Karpovich (eymar) merged commit 815f5ce into jb-main Mar 26, 2026
40 of 41 checks passed
@eymar Oleksandr Karpovich (eymar) deleted the ok/bump_kotlin_2_3_20 branch March 26, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants