Skip to content

Incorrect detection of unused import in Gradle Kotlin DSLs using new assignment operator #411

Closed
@cloudshiftchris

Description

Gradle 8.2 stabilized a new assignment operator (import org.gradle.kotlin.dsl.assign) that allows for setting Gradle Property values using = (delegates to .set()).

This was an issue for IntelliJ until recently-released 2023.2.

ktfmt erroneously identifies the import as unused and removes it, resulting in compilation errors

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions