We’re happy to announce the EAP for Kotlin 1.2.30!
What’s new
This release contains:
-
New feature in
kapt
:mapDiagnosticLocations
flag, which will output proper links to .kt-files in case of error during annotation processing. You can try it in your Gradle-build:kapt { mapDiagnosticLocations = true }
-
New declaration in
stdlib
(KT-22766
), which should imitatesuspend
modifier for lambda literal:
@kotlin.internal.InlineOnly
public inline fun <R> suspend(noinline block: suspend () -> R): suspend () -> R = block
- Support of TestNG in
kotlin.test
(KT-22620
)
— thanks to our kontributor, Valeriy Zhirnov! - Optimization of JVM bytecode generated for
withIndex()
-loops (KT-5177
) - Support of “Analyze Data Flow …” feature for mixed Java and Kotlin (
KT-16833
) - A lot of new inspections and intentions in the IntelliJ plugin
- A lot of improvements in Rename/Move refactorings in the IntellijPlugin
- Bug fixes in the compiler and IDE
- Performance improvements in the IntelliJ plugin
See full changelog for details
How to get EAP build
For IntelliJ IDEA:
You can configure Early Access Preview channel in Tools → Kotlin → Configure Kotlin Plugin Updates
. Change the update channel to “Early Access Preview 1.2.x” and press Check for updates now.
For Gradle or Maven:
Add https://dl.bintray.com/kotlin/kotlin-eap to your repositories.
We recall that since 1.2.20, eap artifacts will be published only to kotlin-eap
bintray channel.
Change the version of Kotlin dependencies (compiler and stdlib) to 1.2.30-eap-47
Please do provide feedback and report any issues to our issue tracker (please specify your plugin version and IDE version).