The dependency matchers trait provides a way to specify the dependencies that should be verified in your project
and then to check that there's no unwanted dependency in the code.
The dependency matchers trait provides a way to specify the dependencies that should be verified in your project
and then to check that there's no unwanted dependency in the code.
It does so by:
specifying the dependencies as "layers" where a package name declared in one layer can only be dependent on a package name
declared in a lower layer
using the scala compiler BuildManager class to recompile the files and get dependency analysis data
Usage:
layers(
"package1",
layer("package2", "package3", "package4"),
layer("package6", "package7")
) must beRespected
The dependency matchers trait provides a way to specify the dependencies that should be verified in your project and then to check that there's no unwanted dependency in the code.
It does so by:
Usage:
layers( "package1", layer("package2", "package3", "package4"), layer("package6", "package7") ) must beRespected