Kotlin 2.1.20 Boosts Plugin Support
Written by Mike James   
Wednesday, 26 March 2025

Kotlin 2.1.20 has been released with updates to the kapt and Lombok plugins, a new DSL to replace Gradle's application plugin, and a number of improvements for WASM. 

Kotlin is the open source language originated by JetBrains and promoted by Google as a first class language for Android to replace or supplement Java.

kotlinlogo

From this release onwards, the K2 implementation of the kapt compiler plugin is enabled by default for all projects. The plugin was launched with the K2 compiler in Kotlin 1.9.20, and has now been developed so its behavior is similar to that of the K1 version, while providing significantly better performance.

Another plugin that's been updated is the Kotlin Lombok compiler plugin, which now supports the @SuperBuilder annotation. This has been implemented to make it easier to create builders for class hierarchies. Until now, developers using Lombok in Kotlin had to manually define builders when working with inheritance. With @SuperBuilder, the builder automatically inherits superclass fields so they can be initialized when constructing an object.

Kotlin Multiplatform developers get a new DSL to replace Gradle's Application plugin with a new executable {} block that configures execution tasks and Gradle distributions for JVM targets.

This release also adds a new inlining optimization pass, which comes before the actual code generation phase. The Kotlin team says the new inlining pass compiler should perform better than the standard LLVM inliner and improve the runtime performance of the generated code.

Developers targeting WebAssembly get better Kotlin/Wasm debugging and property usage. The custom formatters now work out of the box in development builds, while DWARF debugging now has code inspection, and the Provider API simplifies property usage in Kotlin/Wasm and Kotlin/JS. DWARF stands for debugging with arbitrary record format. The improvement means the Kotlin/Wasm compiler can embed DWARF data into the generated WebAssembly binary. DWARF is mainly useful for debugging Kotlin/Wasm applications inside standalone Wasm virtual machines (VMs). 

Kotlin 2.1.20 is available now.

kotlinlogo

More Information

Kotlin Home Page

Related Articles

Kotlin Multiplatform Drops Support For Fleet

JetBrains Releases Kotlin Multiplatform

Kotlin Multiplatform Libraries Now In Preview

How High Can Kotlin Go?

Why Do Android Devs Convert To Kotlin?

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


IEEE Medal of Honor 2025 Goes To Henry Samueli
28/02/2025

Considered the highest honor in the field of Electrical Engineering the IEEE Medal of Honor was inaugurated in 1917 and  this year the the prize was increased to $2,000,000. If the name Henry Sam [ ... ]



Amazon Bedrock Powered Up By New AI Models
06/03/2025

Constantly updating its compatible foundation models list, Amazon Bedrock has added to its offerings, including Anthropic's new Claude Sonnet 3.7.


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info

<1871962900>

<1871962544>

Last Updated ( Saturday, 29 March 2025 )