gradle / build-tool-roadmap

Gradle Build Tool roadmap
https://roadmap.gradle.org/
41 stars 6 forks source link

Kotlin lazy property assignment as a stable feature #50

Closed asodja closed 1 year ago

asodja commented 1 year ago

In 8.1 we added an option to opt-in to Kotlin lazy property assignment, see https://github.com/gradle/build-tool-roadmap/issues/38.

We plan to enable it by default in 8.2 and stabilize it we switch to Kotlin 1.9.0 which has the last fixes - probably in 8.3.

Main reasons why it was not enabled by default before:

  1. Kotlin assignment plugin with Kotlin 1.8.10 emits a warning that plugin is experimental. That might break some builds that use "all warnings are errors" flag for compilation
  2. There are some important bugs with IDE integration in Kotlin 1.8.10, that were fixed in Kotlin 1.8.20: KT-56941, KT-56221

Relates to: Concise and statically-typed Property<T> assignment