canOnlyDependOn

fun canOnlyDependOn(vararg layerNames: String)(source)

Restricts this layer to only depend on the named layers. Any dependency on a module outside these layers is a violation.