policeman-tools / forbidden-apis

Policeman's Forbidden API Checker
Apache License 2.0
324 stars 34 forks source link

(Gradle) How to avoid creation of a forbiddenApisTest task #217

Closed guillerodriguez closed 1 year ago

guillerodriguez commented 1 year ago

I would like to use forbiddenApis to check for API violations in the main sourceSet, but not in the test sourceSet. Is there a way to tell forbiddenApis to ignore specific sourceSets?

I tried to leave the default signatures empty for the test sourceSet but then I get a "No signatures were added to task" error.

uschindler commented 1 year ago

Just disable the task.

guillerodriguez commented 1 year ago

Indeed. Thanks!