Description
It would be nice if forbidden-apis can be configured to ignore failures for some signature files and not for others.
This would make it possible to have a set of signature files for APIs that should never be used (i.e. broken, unsafe, etc), and using them would result in an error and fail the build, and a different set of signature files for APIs that are allowed but should be used with care / double checked (for example, APIs that are partially broken and should only be used under certain circumstances). The latter should result in warnings but not in hard errors.
Currently it does not seem possible to do that, at least in the Gradle DSL, which only allows a boolean ignoreFailures
setting.
Perhaps ignoreFailures
could itself receive a list of signature files where failures should be ignored, and still allow true
and false
for backwards compatibility.