Architecture Rules is a Java library that allows a programmer to assert code's architecture via unit tests or ant tasks. This test is able to assert that specific packages do not depend on others and is able to check for and report on cyclic dependencies among your project's packages and classes. This project wraps a industry accepted JDepend to simplify the process of maintaining a solid software architecture.


This release included a report class creating the cyclic redundancy, made testArchitecture() public, added configuration method chaining, included a license file, added support for wildcards, and provided an API for retrieving the list of violations. Exceptions should now implement an ArchitectureRulesException. Meaningful defaults were provided with the Maven plugin. A classpath conflict with common-io and Spring was fixed.

URL: architecturerules - Google Code