Submodule of module not working in gradle

I have a root project gradletinker with sub-module xt-domain-layer. The settings.gradle of gradletinker is:

rootProject.name = 'gradletinker'
include 'xt-domain-layer'

The xt-domain-layer also contains a submodule called xt-web. The settings.gradle of xt-domain-layer is:

  rootProject.name = 'xt-domain-layer'
  include 'xt-web'

Now from the root project graldetinker when I run \gradletinker>gradlew projects I do not getting the submodule xt-web listed

------------------------------------------------------------
Root project             
------------------------------------------------------------
                  
Root project 'gradletinker'
\--- Project ':xt-domain-layer'
                     

\gradletinker>gradlew -q :xt-domain-layer:projects

------------------------------------------------------------
Project :xt-domain-layer
------------------------------------------------------------

Project ':xt-domain-layer'
No sub-projects

Any idea where I am going wrong?

There should only be one settings.gradle in you root project, which should include all other projects. Please refer to the user guide on multi-project builds.

1 Like

Thanks a lot! Figured out by going through the docs.