(original question on SO: https://stackoverflow.com/questions/58201803/short-way-to-run-gradle-task-on-subproject)
So, using gradle 5.6.1, I have a project with several nested modules/projects:
root
├── A
└── B
└── C
└── D
Now, if I was using maven, I could do
mvn clean install -pl :D
but in gradle it seems I need to type:
./gradle :B:C:D:assemble
which means I need to know and type the full path to the module/subproject.
Is there any shorter way, some way to pass only ?
ps: I’m also using gw (https://github.com/srs/gw) if relevant