Short way to run gradle task on subproject

(original question on SO:

So, using gradle 5.6.1, I have a project with several nested modules/projects:

├── 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 :smiley: ?

ps: I’m also using gw ( if relevant