hierynomus / license-gradle-plugin

Manage your license(s)

Home Page:http://www.javadude.nl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add .gradle extension as a Supported Format

geekythoughts opened this issue · comments

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!

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.

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!