LayerSpec

data class LayerSpec(val name: String, val modulePatterns: List<String>, val allowedLayers: List<String>, val hasRestriction: Boolean)(source)

One architectural layer as declared in the consumer's layers { } block.

Parameters

name

Layer name, e.g. "domain". Unique within a declaration set.

modulePatterns

Glob patterns selecting the modules in this layer, in declaration order.

allowedLayers

Names of the layers this one may depend on. Meaningless unless hasRestriction is true.

hasRestriction

True when the layer called canOnlyDependOn(...), making allowedLayers an allowlist. False means the layer is declared but unconstrained.

Constructors

Link copied to clipboard
constructor(name: String, modulePatterns: List<String>, allowedLayers: List<String>, hasRestriction: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard