ArchUnit icon indicating copy to clipboard operation
ArchUnit copied to clipboard

Arch Unit Archtecture Rules Repository

Open nagkumar opened this issue 3 years ago • 2 comments

Is it possible to standardize architectural rules and see them reusable globally, like the way jar files publishedn in maven can be used by any!!

I do see the best architecture principles in spring, cloud, and any other framework well defined and they can be reused if arch repo can be built. I do see some similar products to share best practices at https://promyze.com/?utm_source=pocket_mylist

Maybe some ideas can come from there too.

#Reusuable #ArcTestRules

nagkumar avatar Aug 13 '22 07:08 nagkumar

The archunit.jar already contains some general reusable ArchConditions and ArchRules in the com.tngtech.archunit.library package, see, e.g., DependencyRules, GeneralCodingRules, ProxyRules. If you have a specific idea how to extend those, feel free to contribute a PR!

hankem avatar Aug 13 '22 10:08 hankem

As @hankem said, some generally useful rules we try to include in the library package of ArchUnit itself. Other than that everybody can principally publish best practices for a certain context, e.g. to Maven Central. ArchUnit rules can be distributed just like any other jar file. An example where this is already done is https://github.com/moduliths/moduliths where ArchUnit is integrated in the core to assert correct dependencies or the ArchUnit JMolecules integration to assert that components identified by annotations are implemented correctly.

codecholeric avatar Aug 17 '22 06:08 codecholeric