JetbrainsDaniel CsorbaAnnouncement
Kotlin 2.4.20 Released
Summary
Kotlin 2.4.20 is released with updates spanning the standard library, Kotlin/Native, Kotlin/Wasm, Kotlin/JS, Gradle, build tools, and the compiler. The standard library adds coroutine stack trace recovery, collection equality and uniqueness checks, and new kotlin.test assertion overloads. Kotlin/Native gains Swift export features, improved incremental compilation, and generated Package.swift files, while Kotlin/Wasm adds Wasmtime support in the Kotlin Gradle plugin and changes to require() handling in @JsFun declarations. Kotlin/JS introduces a browser-testing DSL, suspend-lambda exports as async functions, and improved data-class exportability. The release also supports Gradle 9.7.0, adds Build tools API targets, and provides the kotlinr runner command and a separate native image; it is available through updated IDEs, build scripts, or the command-line compiler.
Approach / What changed
The release updates Kotlin across its standard library, native and web targets, Gradle integration, Build tools API, and compiler. Installation involves updating IntelliJ IDEA or Android Studio, setting the Kotlin version to 2.4.20 in build scripts, or downloading the command-line compiler from the GitHub release page.
Takeaways
Kotlin/Native adds new Swift export features, improved incremental compilation, and automatically generated Package.swift files for SwiftPM dependencies.
Kotlin/Wasm now supports Wasmtime in the Kotlin Gradle plugin, alongside changes to top-level require() calls in @JsFun declarations and companion object initialization order.
The Build tools API adds support for Kotlin/JS, Kotlin/Wasm, and Kotlin metadata targets, while the compiler introduces the kotlinr runner command and a separate native image.
Source and freshness
- Source
- blog.jetbrains.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.