diffplug / diffplug/spotless

Apply license header to `package-info.java` and `module-info.java`

Open
#532 11 comments 6 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
5.6k
Forks
559
Avg merge
1d 13h
Merged PRs (30d)
34

Description

We added spotless with the Google Java style:

spotless {
java {
googleJavaFormat("1.7")
licenseHeaderFile "${project.rootDir}/company.license.java"
}
}

and it formatted all code...but left all the **package-info.java** classes untouched when we run spotlessJavaApply

is that expected behaviour or a bug? How can we force the format to include those files as well?

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.