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

Idea for a new task to check found licenses against list of allowed licenses #189

Open
ghgrgr opened this issue Apr 14, 2022 · 2 comments
Open

Comments

@ghgrgr
Copy link

ghgrgr commented Apr 14, 2022

Motivation
Certain licenses of project dependencies might be allowed and others not. A gradle task could automate the check if there are dependencies with licenses which are not allowed.

Specification
There is a plugin configuration that allows specifying a file name for the list of allowed licenses. When the new task is run, the file is read and licenses are collected as usual. If all licenses found are listed in the file, the task succeeds. If at least one licenses is found that is not in the file, the task fails. Problematic licenses and the dependencies using them are reported via file output and command line.

@jaredsburrows
Copy link
Owner

This is a great idea, I know there are a few plugins like that already - https://github.com/cashapp/licensee. If you want to help build that functionality into this plugin, that would be great!

@ghgrgr
Copy link
Author

ghgrgr commented Apr 22, 2022

Unfortunately, I have no experience with programming Gradle plugins, Kotlin or Groovy. :-( If this was a Java project, I would have been happy to.

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

No branches or pull requests

2 participants