Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19870

Short way to run gradle task on subproject

$
0
0

(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 :smiley: ?

ps: I’m also using gw (https://github.com/srs/gw) if relevant


Viewing all articles
Browse latest Browse all 19870

Trending Articles