Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .gradle extension as a Supported Format #48

Closed
geekythoughts opened this issue Jul 28, 2014 · 2 comments
Closed

Add .gradle extension as a Supported Format #48

geekythoughts opened this issue Jul 28, 2014 · 2 comments

Comments

@geekythoughts
Copy link

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
Copy link
Owner

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
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants