![]() The entries property is a modern and performant replacement for the synthetic values() function. In 1.8.20, the entries property for enum classes was introduced as an Experimental feature. Stable replacement of the enum class values function Support for secondary constructors with bodies in inline value classes Replacement of the enum class values function In Kotlin 1.9.0, we're stabilizing some new language features that were introduced earlier: Report any problems you've faced with the new K2 compiler on our issue tracker.Įnable the Send usage statistics option to allow JetBrains to collect anonymous data about K2 usage. Provide your feedback directly to K2 developers Kotlin's Slack – get an invite and join the #k2-early-adopters channel. We'd appreciate any feedback you may have! Leave your feedback on the new K2 compiler Update the Gradle version in your project to 8.3 when it becomes available. ![]() Starting with 1.9.0 and until the release of Kotlin 2.0, you can easily test the K2 compiler by adding the 2=true Gradle property to your gradle.properties file. If you encounter any issues when using kapt with the K2 compiler, please report them to our issue tracker. All other compilation tasks will continue to utilize the new K2 compiler. These checks are exclusively disabled for kapt tasks. This behavior is equivalent to including the following command arguments: If you execute the kapt compiler plugin within a project where languageVersion is set to 2.0, kapt will automatically switch to 1.9 and disable specific version compatibility checks. ![]() Despite setting languageVersion to 2.0, the kapt compiler plugin still utilizes the old compiler. You can use the kapt plugin in your project along with the K2 compiler, but with some restrictions. Compatibility of the kapt compiler plugin with the K2 compiler There's now also basic support for Kotlin/Native and multiplatform projects. The K2 compiler for the JVM is now in Beta. ![]() The Kotlin team at JetBrains continues to stabilize the K2 compiler, and the 1.9.0 release introduces further advancements. To download Kotlin artifacts and dependencies, configure your Gradle settings to use the Maven Central Repository. The Kotlin 1.9.0 plugin will be included with IntelliJ IDEA 2023.2 in the upcoming releases. *The Kotlin 1.9.0 plugin will be included with Android Studio Giraffe (223) and Hedgehog (231) in their upcoming releases. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |