Execute gradle task on sub projects

前端 未结 3 2019
陌清茗
陌清茗 2020-12-23 13:45

I have a MultiModule gradle project that I am trying to configure.

Root
    projA
    projB
    other
        projC
        projD
        projE
        ...         


        
3条回答
  •  遥遥无期
    2020-12-23 14:20

    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.

提交回复
热议问题