The Layer class represent a list of packages.
The Layer class represent a list of packages.
If those packages share a common prefix, it will be stored in the prefix
member
This class represents an ordered set of layers, where each package on a given layer can only depend on packages defined in lower layers
This class represents an ordered set of layers, where each package on a given layer can only depend on packages defined in lower layers
this matcher checks that dependencies are satisfied for a given Layers definition
this matcher checks that dependencies are satisfied for a given Layers definition
matcher for Layers declarations
matcher for Layers declarations
the classes depending on the classes of package, given its name
a new Layer object. If a prefix is defined, it will apply to each given name
a new Layers object, composed of other layers. If a prefix is defined it will apply to each layer
this implicit definition allows to use a single string instead of a Layer object
this implicit definition allows to use a single string instead of a Layer object
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