I have a MultiModule gradle project that I am trying to configure.
Root
projA
projB
other
projC
projD
projE
...
I found this question today because I have the same issue. All of the ways mentioned by Mark can be used but all of them have some cons. So I am adding one more option:
4. Switching the current project
gradle -p other hello
This switches the "current project" and then runs all tasks named hello under the current project.