apiOnly

Restricts the rule to api dependencies only - an "API-leak" rule. The from module may still depend on to via implementation; it just may not re-export it onto its own consumers with api. Use it to stop a module widening its public surface, e.g. forbid { from(":core:public"); to(":core:internal"); apiOnly() }.