spotless icon indicating copy to clipboard operation
spotless copied to clipboard

`licenseHeader` doesn't work when `kotlin` and `kotlinGradle` are both enabled

Open Goooler opened this issue 1 year ago • 0 comments

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.

Goooler avatar Dec 07 '23 02:12 Goooler