Skip to content

licenseHeader doesn't work when kotlin and kotlinGradle are both enabledΒ #1956

@Goooler

Description

@Goooler

If I use the config below, it works in Groovy Dsl project for kt fies

spotless {
    kotlin {
        ktlint()
        licenseHeaderFile(rootProject.file("gradle/HEADER.txt"))
    }
}

But if I just copy-paste it into Kotlin Dsl project, license headers will not be added or replaced into kt files.

Metadata

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