Skip to content
Advertisement

Tag: archunit

ArchUnit packages usage with exceptions for subpackages

I got seemingly trivial use-case, and still I cannot figure it out. Let’s take a look at the package structure. — CommonPackage — Package1 —- DAOs —- Common —- Service — Package2 —- subpackage1 —- subpackage2 What I want to achieve is to create a rule, in which all the classes in the Package2, cannot use any of the classes

Advertisement