Hmmm. ktfmt erroneously detects an import as unused and removes it.
Gradle 8.x introduced new assignment operator for
Property
instances, allowing
=
(delegating to
.set()
).
IntelliJ 2023.2 fixed its erroneous detection of
org.gradle.kotlin.dsl.assign
as unused.
ktfmt removes
org.gradle.kotlin.dsl.assign
resulting in a compilation failure, though not even getting there on CI as it first checks if anything needs to be formatted and fails on this erroneous change.
Doesnât appear to be a way to workaround this.
Ticket.