diffplug / diffplug/spotless

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

Open
#1,956 0 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
5.6k
Forks
559
Avg merge
1d 13h
Merged PRs (30d)
34

Description

If I use the config below, it works in Groovy Dsl project for kt fies
```groovy
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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.