license-gradle-plugin
license-gradle-plugin copied to clipboard
Support for new line after header license
Mapping a new file extension to an existing style is possible, but no option to add a new style is given (or if so, it is not documented in the README.md file)
Actually, the only thing that I actually need is to add a new line after the header as defined in this pull request: https://github.com/hierynomus/license-gradle-plugin/pull/55
Integrating that feature would be enough for my use case (compliance with Google Java Style )
Hi Ruben,
As you see in the discussion of the #55, the implementation there was suboptimal at best. Also there were additional troubles with verification whether the license was correctly applied. If you have a better PR, I'll be more than happy to incorporate it.
Instead of adding parameter insertNewline
, what about supporting mycila headerDefinitions
which gives more flexibility ?
This is for example used by the Guice project:
- https://github.com/google/guice/blob/master/lib/build/header-definitions.xml
- https://github.com/google/guice/blob/master/pom.xml#L227-L229