assertOnlyDependOnClassesInAnyPackage
Asserts that the selected classes depend only on classes residing in packages matching the specified patterns.
Example:
repositories.assertOnlyDependOnClassesInAnyPackage("..domain..", "..data..")Parameters
Package wildcard patterns representing allowed dependency packages.
The complete collection of class declarations used for dependency resolution. Defaults to all classes in the loaded project graph.
Throws
if any target class depends on a class outside the allowed packages.
Asserts that the selected classes in the scope depend only on classes residing in packages matching the specified patterns.
Parameters
Package wildcard patterns representing allowed dependency packages.
The complete collection of class declarations used for dependency resolution. Defaults to all classes in the loaded project graph.
Throws
if any target class depends on a class outside the allowed packages.