-
Notifications
You must be signed in to change notification settings - Fork 30
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
Feature Request: Add configuration to disable unused spdx-identifier, license-url and dependency warnings #134
Comments
Makes sense! |
Thanks for your quick reply! |
I don't see the use case without applying the plugin to the root project which is discouraged and should be prevented in upcoming Gradle releases. Instead, use convention plugins and apply the plugin for each project. This also allows you to allow some base spdx licenses and allow individual licenses at project level. |
Suppose you have a project consisting of ten subprojects. There is a convention plugin enabling the licensee plugin. This convention plugin is used in all subprojects. All but one subproject have a dependency to a library that is licensed under the MIT license. Now there are two possibilities to allow dependencies to the MIT-licensed library:
While I don't see a reason why one should not go for the second option, a warning will be generated for the submodule that does not have the dependency to the MIT-licensed library. |
Another use case could be when you work in an environment where you have a global allowed set of allowed open source licenses. You could write a convenience plugin then in which you use this plugin and configure it to allow this specific set of licenses. That would be a one timer and the only reason to change something in this convenience plugin would be if the set of allowed licenses changes. You could then use this plugin in all of your projects. But going forward like this, one would possibly get a lot of warnings because of unused but allowed licenses. |
In case anyone's still interested, a PR's been merged to support this: #285 Comes with a new config option: licensee {
unusedAction(UnusedAction.IGNORE) // defaults to WARN
} |
Imagine one wants to provide a centralized configuration of allowed libraries open for everyone to use.
It would be nice to have the ability to disable the warnings, otherwise one might get spammed with the warnings, because a centralized catalogue might most possibly cover more licenses than you actually use.
The text was updated successfully, but these errors were encountered: