onlyDependOnModules

fun onlyDependOnModules(vararg modulePatterns: String)

Asserts that modules in the selector depend only on the specified module paths or glob patterns.