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


Microsoft Open Sources 6502 Basic
05/09/2025

Microsoft has released the source code of Basic 1.1 for the 6502 microprocessor on GitHub. The page with the code says the assembly language source code represents one of the most historically signifi [ ... ]



PostgreSQL Conferences In 2025
05/09/2025

Two great PostgreSQL conferences, PGConf.dev and Posette, took place during May and June this year. We take a look at the key talks of each of them.


More News

pico book

 

Comments




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

<1871962900>

<1871962544>

Last Updated ( Saturday, 29 March 2025 )