layer

fun layer(name: String, block: ArchitectureLayerPolicy.() -> Unit)

Declares a first-class architectural layer with module/package selectors and explicit dependency boundaries inside this architecture validation context.

Parameters

name

The unique, human-readable name of the layer.

block

Declarative layer policy scoped to ArchitectureLayerPolicy.