Kotlin
A concise multiplatform language developed by JetBrains
Kotlin 1.7.0 Released
Kotlin 1.7.0 has been released. It unveils the Alpha version of the new Kotlin/JVM K2 compiler, stabilizes language features, and brings performance improvements for the JVM, JS, and Native platforms.
Here is a list of the major updates in this version:
- The new Kotlin К2 compiler is in Alpha now, and it offers serious performance improvements. It is available only for the JVM, and none of the compiler plugins, including kapt, work with it yet.
- A new approach to the incremental compilation in Gradle. Incremental compilation is now also supported for changes made inside dependent non-Kotlin modules and is compatible with Gradle.
- We’ve stabilized opt-in requirement annotations, definitely non-nullable types, and builder inference.
- There’s now an underscore operator for type args. You can use it to automatically infer a type of argument when other types are specified.
- This release allows implementation by delegation to an inlined value of an inline class. You can now create lightweight wrappers that do not allocate memory in most cases.
Read the complete list of changes in What’s new in Kotlin 1.7.0.
How to install Kotlin 1.7.0
If you already use IntelliJ IDEA or Android Studio Chipmunk (212), your IDE will suggest updating Kotlin to 1.7.0 automatically. You can also update manually for these IDEs by following these instructions.
For Intellij IDEA 2022.2, and Android Studio Dolphin (213) or Android Studio Electric Eel (221), the Kotlin plugin 1.7.0 will be delivered with upcoming Intellij IDEA and Android Studios updates.
Make sure that you have also updated the kotlinx libraries to compatible versions and specified version 1.7.0 of Kotlin in the build scripts of your existing projects.
If you need the command-line compiler, download it from the GitHub release page.
If you run into any problems
- Find help on Slack (get an invite).
- Report issues to our issue tracker, YouTrack.
Stay up to date with the latest Kotlin features! Subscribe to receive Kotlin updates by filling out the form to the right of this post.
What else to read and watch
- Updated Kotlin roadmap
- What’s new in Kotlin 1.7.0 documentation
- What’s new in Kotlin 1.7.0 on YouTube
- Compatibility guide for Kotlin 1.7
Top issue reporters from YouTrack
Philip Wedemann (28 issues), AndroidDeveloperLB (20 issues), Morgan Bartholomew (12 issues), meng wang (10 issues), Carlos Ballesteros Velasco (10 issues), Ivan Gavrilovic (9 issues), Steven Schäfer (9 issues), Tianyi Guan (9 issues), Niklas Baudy (9 issues), holger brandl (9 issues), Mike Hearn (8 issues), Eliezer Graber (8 issues), Waldemar Kornewald (8 issues), Piotr Krzemiński (8 issues), Yigit Boyar (7 issues), Javier Segovia Córdoba (7 issues), Oliver O. (7 issues), vivek modi (7 issues), Philip Dukhov (7 issues).
External contributors
We’d like to thank all of our contributors whose pull requests were included in this release: Jinseong Jeon, Tianyu Geng, pyos, Hung Nguyen, Mark Punzalan, Mads Ager, Steven Schäfer, Irene Dea, Ivan Gavrilovic, Xin Wang, Kristoffer Andersen, wrongwrong, Mattia Iavarone, Martin Petrov, Aurimas, Alexey Subach, Udi Cohen, Quantum64, Dario Seidl, David Saff, Denis Mekhanikov, Egor, Glen K. Peterson, Ian Lynagh, Iaroslav Postovalov, Jerome Prinet, Jiaxiang Chen, Joseph Walton, Kevin Bierhoff, Matthew Haughton, Michael Rittmeister, Morten Krogh-Jespersen, Nikolay Kasyanov, Piotr Krzeminski, 770grappenmaker, Rick Clephas, Ryan Nett, Shumaf Lovpache, Starlight220, Yigit Boyar, Zac Sweers, aragos, baratynskiy, ov7a, sgmoore, soywiz, tdn120.