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


Action Figure Craze Overruns OpenAI
13/04/2025

If you're on social media, you'll probably have seen a lot of 'action figure' posts, where people show off images of themselves, their dog or their cat in the form of an action figure, complete with s [ ... ]



Google Redesigns Play Console
18/04/2025

Google has updated its Play Console to provide developers with a dashboard for workflows and new metrics. Play Console is Google's tool for developers where subscribers can manage the apps and games t [ ... ]


More News

espbook

 

Comments




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

<1871962900>

<1871962544>

Last Updated ( Saturday, 29 March 2025 )