I want to enforce certain architectural rules in my kotlin/gradle project automatically. An example would be: No calls from model package to xyz package. Or no calls to the ACL layer from packages a, b and c.
Is there a way to enforce these rules automatically on each build/deployment?
I ended up building tests based on archunit