modules-graph-assert icon indicating copy to clipboard operation
modules-graph-assert copied to clipboard

[Feature Request] Support wildcard for configurations

Open simonhauck opened this issue 1 year ago • 2 comments

Background For large multi module projects that contain multiple languages, resources and generated code there could be a lot of custom configurations that are created for example by val someConfig: Configuration by configurations.creating {} in a build.gradle.kts.

Current behavior

Right now, (at least from my understanding) each configuration must be named explicitly.

Feature request It would be great, if we could specify the modules to consider as a regex or just a wildcard, e.g.

moduleGraphAssert {
    configurations =  setOf("*")
}

What are your thoughts on that?

From a quick scanning of the code it seems that this file would require changes in listAllDependencies function.

simonhauck avatar Dec 18 '23 07:12 simonhauck