This has rarely ever been a problem for me because I use IntelliJ configured to add the header automatically.
On Sun, Oct 25, 2026 at 2:01 AM Jalaz Kumar <[email protected]> wrote: > > Hi all > > pre-commit (./gradlew check -x test) fails on new files without an ASF > license header, which needs to be added by hand when it fails. > > *Proposal* > A small `./gradlew addLicenseHeader` task, similar to > `./gradlew writeChangeLog`. > > *Open Questions* > - Is it worth having such a task or is pre-commit failing loudly enough? > - Is covering just the java files enough to start with? > - Should it run automatically as part of tidy? -> this will be good. > > I personally have to manually add the License header on top many times, > thus I feel this should help. > > -- > Regards > Jalaz Kumar --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
