licensee icon indicating copy to clipboard operation
licensee copied to clipboard

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

Open yogurtearl opened this issue 4 years ago • 2 comments

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.

yogurtearl avatar Aug 10 '21 23:08 yogurtearl

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 avatar Aug 11 '21 00:08 JakeWharton

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.

JakeWharton avatar Feb 12 '24 15:02 JakeWharton