What’s New In Kotlin 1.7.20?
On 29/09/2022 Kotlin 1.7.20 was released. Kotlin is a popular programming language for backend and Android development.
The new compiler is closer and closer to becoming the new default!
6 Compiler Plug-ins Now Work With K2 Compiler
With the new version progress is made to move newly introduced K2 compiler out from the alpha stage.
On the road to phase out standard compiler, K2 now supports several compiler plug-ins, namely:
- all-open
Used to annotate classes and their members open for frameworks and libraries.
- no-arg
Synthetic, zero argument constructor generator.
- SAM with receiver
Converter of a Java SAM’s first parameter into a receiver.
- Lombok
Makes it possible to mix with Java Lombok declarations.
- AtomicFU
Atomic operation library.
- jvm-abi-gen
ABI class generator.
To enable K2 compiler just pass this argument: