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

Feature Request: Support different license policies for different scopes/configs #48

Open
yogurtearl opened this issue Aug 10, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@yogurtearl
Copy link

It would be useful to be able to specify different license policies for different scopes/configurations.

e.g. A license is allowed if on the buildScript classpath, but not if it is in production code.
Also, a license might be allowed only in test and/or debug, but not allowed in release.

This might happen if the license has terms related to distribution. You might distribute your release artifact, but not the tests.

@JakeWharton
Copy link
Collaborator

I planned to support Android variant-based config and Kotlin MPP target-based config.

I was not planning on test or build since those are not subject to any real restrictions. But I'll think about them.

@JakeWharton
Copy link
Collaborator

Most of this is possible now thanks to #191 and features like ignoring unused allows. I'll still leave it open as there's probably more to do.

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

No branches or pull requests

2 participants