Add .gradle extension as a Supported Format
geekythoughts opened this issue · 2 comments
geekythoughts commented
Hi - I'm trying to find a way to add a license header to my Gradle build scripts. It looks like the license-maven-plugin doesn't have a mapping for *.gradle. Is there a way to do this? If not then, I'm suggesting adding .gradle as a valid extension.
Thanks!
hierynomus commented
It's possible to do this in your build.gradle file:
license.mapping 'gradle' 'JAVADOC_STYLE'
But it makes sense to add this as a default.
geekythoughts commented
That works! I had misinterpreted the mapping feature as only able to map extensions supported by the Maven plugin but as you point out this is not the case.
Thanks!