Is it possible to set up a gradle project with more than 2 levels?

前端 未结 4 963
青春惊慌失措
青春惊慌失措 2020-12-14 06:19

We have been using gradle for about a year and have been somewhat successful with it. A number of features are still a little opaque, but we are getting there. I am not sure

4条回答
  •  隐瞒了意图╮
    2020-12-14 06:50

    I would simply put the following in TopProject/settings.gradle:

    include 'Project1:SubProject1'
    include 'Project1:SubProject2'
    include 'Project2:SubProject1'
    ...
    

    The only change required to the projects you currently have is to remove settings.gradle files from them as you can only have one setting.gradle file per project structure.

提交回复
热议问题