onlyDependOnExternalLibraries
fun onlyDependOnExternalLibraries(vararg coordinates: String, includeTransitive: Boolean = true): ModulesRuleBuilder
Asserts that selected modules only depend on the specified external maven libraries.
Any external dependencies of the selected modules not matching the specified patterns will cause a violation.
Supports simple glob matching (e.g. "org.jetbrains.kotlin:" or "com.google."). If the coordinate pattern does not contain ':', it matches against either group or name.
Parameters
coordinates
Permitted Maven coordinate pattern(s).
includeTransitive
True to assert against both direct and transitive external dependencies (defaults to true).