![]() ![]() If you configure language and API versions for specific tasks, these values will override the values set by the compilerOptions extension. Set the language version for buildSrc, any Gradle plugins, and their dependencies: If you encounter any of the problems mentioned above, you can take the following steps to address them: ![]() Current K2 compiler limitationsĮnabling K2 in your Gradle project comes with certain limitations that can affect projects using Gradle versions below 8.3 in the following cases:Ĭompilation of source code from buildSrc.Ĭompilation of Gradle plugins in included builds.Ĭompilation of other Gradle plugins if they are used in projects with Gradle versions below 8.3. A large number of users are also involved in the stabilization process, trying the new K2 compiler in their projects and reporting any problems they find. The JetBrains team has ensured the quality of the new compiler by successfully compiling dozens of user and internal projects. ![]() The K2 compiler is in Beta for all target platforms: JVM, Native, Wasm, and JS. The new Kotlin K2 compiler will bring major performance improvements, speed up new language feature development, unify all platforms that Kotlin supports, and provide a better architecture for multiplatform projects. The JetBrains team is still working on stabilization of the new Kotlin K2 compiler. All you need to do is to change the Kotlin version to 2.0.0-Beta2 in your build scripts. You don't need to update the Kotlin plugin in your IDE. ![]() The Kotlin plugins that support 2.0.0-Beta2 are bundled in the latest IntelliJ IDEA and Android Studio. In addition, there is a change in the way that the Kotlin Gradle plugin stores Kotlin data. The Kotlin 2.0.0-Beta2 release is out! It mostly covers stabilization of the new Kotlin K2 compiler, which reached its Beta status for all targets since 1.9.20. See the full list of changes in the GitHub changelog. This document doesn't cover all of the features of the Early Access Preview (EAP) release, but it highlights some major improvements. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |