:wave: wondering if anyone has an elegant solution...
# community-support
b
👋 wondering if anyone has an elegant solution to this problem. I am in a monorepo and want to be able to run a task for only the projects in a particular top-level module/project/directory. I can do something like this in the top-level project:
Copy code
tasks.register("testClassesAll") {
  dependsOn(getTasksByName("testClasses", true))
}
This seems to be configuration cache compatible but I feel like I will run into issues with project isolation when that becomes a thing, because of the recursive getTasksByName. It also requires me to enumerate the exact tasks I want to be able to aggregate (not a huge deal, but annoying). Given that Gradle allows for fuzzy task matching on the command line, it seems like there should be a nice way to filter the matches to only a particular folder? But the above issue did not seem to get much traction 😞