LayeredArchitectureDsl
Type-safe, nested DSL for defining and verifying layered architecture rules.
Example Usage:
Konture.layered {
val presentation = layer("presentation") definedBy "io.github.baole.konture.presentation.."
val domain = layer("domain") definedBy "io.github.baole.konture.domain.."
val data = layer("data") definedBy "io.github.baole.konture.data.."
where(presentation) {
mayOnlyAccessLayers(domain)
}
where(domain) {
mayNotBeAccessedByAnyLayer()
}
}Content copied to clipboard
Types
Functions
Link copied to clipboard
Starts defining an architectural layer with the specified name.
Link copied to clipboard
fun where(layer: LayeredArchitectureDsl.Layer, block: LayeredArchitectureDsl.ConstraintSpec.() -> Unit)
Specifies validation constraints for a given layer.