gradlekotlinarchitecturejdeps

How to enforce architectural rules in a kotlin+gradle project?


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?


Solution

  • I ended up building tests based on archunit