Arch Unit Archtecture Rules Repository
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
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!
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.