Skip to content

Upgrade Kotlin to 2.4.21 - #300

Merged
vRallev merged 1 commit into
mainfrom
ralf/kotlin-2.4.21
Oct 10, 2026
Merged

vRallev merged 1 commit into
mainfrom
ralf/kotlin-2.4.21

Conversation

@vRallev

@vRallev vRallev commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

Upgrade the main build from Kotlin 2.4.20 to 2.4.21, released on 2026-10-08, to adopt the stable bug-fix release. The shared catalog aligns Kotlin Gradle and Compose compiler plugins, compiler tooling, standard library, and test artifacts. Preserve App Platform APIs, generated DI behavior, platform minimums, and standalone blueprint toolchains.

The release fixes Wasm cast failures and generic serialization output, JVM reflection, JavaScript minification and external-class inheritance, Native Linux test-cache failures and SwiftPM logging, and script execution and resource handling. This repository builds Wasm and Native targets and uses reflection in compiler tests. It has no direct @Serializable, KCallable, SwiftPM, or Kotlin/JS target usage that requires a source migration. The Kotlin Gradle plugin POM has no dependency changes beyond the Kotlin version; existing JDK, Android, iOS, Gradle, Metro, and KSP versions remain unchanged.

The version catalog history contains only Kotlin version increases, with no Kotlin rollback. The previous Kotlin 2.4.20 migration required compiler API adaptations; retain the current Metro compatibility implementation and Metro 1.4.5.

No publicly discoverable target-version-specific regression report was found in Kotlin's GitHub issues or Metro's exact-version search as of 2026-10-08. Confidence is limited because this release was published today. Direct YouTrack and Google Issue Tracker searches were unavailable; indexed exact-version searches found no additional report.

Sources: Kotlin 2.4.21 release notes, Kotlin Gradle plugin metadata, Kotlin issue search, Metro issue search, YouTrack search, Google Issue Tracker search.

Validation: Kotlin compiler and test-framework resolution is exactly 2.4.21. All 164 compiler/code-generator tests, 201 Android host tests, and 198 Desktop tests passed. Both sample and recipe Android apps and iOS simulator frameworks built. The sample Wasm production distribution, root and Gradle-plugin ABI checks, formatting, and git diff --check passed. No ABI baseline or compiler fixture update was required.

CI: All 27 applicable checks passed on d9c7617e00db8d0a65a331f14c05ddcb12951e44; documentation deployment was skipped for the PR. This includes Kotlin 2.4.20 and 2.5.0-Beta1 compiler compatibility, iOS simulator tests and Swift app build, Linux and Wasm tests, Android emulator tests, and both blueprint builds against Maven-local publications. Two snapshots at least 20 seconds apart remained green with no reviews, comments, or review threads. No CI fixes or reruns were needed.

Upgrade the main build from Kotlin `2.4.20` to `2.4.21`, released on `2026-10-08`, to adopt the stable bug-fix release. The shared catalog aligns Kotlin Gradle and Compose compiler plugins, compiler tooling, standard library, and test artifacts. Preserve App Platform APIs, generated DI behavior, platform minimums, and standalone blueprint toolchains.

The release fixes Wasm cast failures and generic serialization output, JVM reflection, JavaScript minification and external-class inheritance, Native Linux test-cache failures and SwiftPM logging, and script execution and resource handling. This repository builds Wasm and Native targets and uses reflection in compiler tests. It has no direct `@Serializable`, `KCallable`, SwiftPM, or Kotlin/JS target usage that requires a source migration. The Kotlin Gradle plugin POM has no dependency changes beyond the Kotlin version; existing JDK, Android, iOS, Gradle, Metro, and KSP versions remain unchanged.

The version catalog history contains only Kotlin version increases, with no Kotlin rollback. The previous Kotlin `2.4.20` migration required compiler API adaptations; retain the current Metro compatibility implementation and Metro `1.4.5`.

No publicly discoverable target-version-specific regression report was found in Kotlin's GitHub issues or Metro's exact-version search as of `2026-10-08`. Confidence is limited because this release was published today. Direct YouTrack and Google Issue Tracker searches were unavailable; indexed exact-version searches found no additional report.

Sources: [Kotlin 2.4.21 release notes](https://github.com/JetBrains/kotlin/releases/tag/v2.4.21), [Kotlin Gradle plugin metadata](https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/2.4.21/kotlin-gradle-plugin-2.4.21.pom), [Kotlin issue search](https://github.com/JetBrains/kotlin/issues?q=is%3Aissue+%222.4.21%22), [Metro issue search](https://github.com/ZacSweers/metro/issues?q=%222.4.21%22), [YouTrack search](https://youtrack.jetbrains.com/issues/KT?q=2.4.21), [Google Issue Tracker search](https://issuetracker.google.com/issues?q=%22Kotlin%202.4.21%22).
@vRallev
vRallev marked this pull request as ready for review October 10, 2026 21:28
@vRallev
vRallev merged commit a4f244f into main Oct 10, 2026
28 checks passed
@vRallev
vRallev deleted the ralf/kotlin-2.4.21 branch October 10, 2026 21:28
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.

1 participant