我有一個根項目gradletinker
,子模塊xt-domain-layer
。的gradletinker
的settings.gradle
是:模塊中的子模塊不在gradle中工作
rootProject.name = 'gradletinker'
include 'xt-domain-layer'
的xt-domain-layer
還含有一種叫xt-web
子模塊。的xt-domain-layer
的settings.gradle
是:
rootProject.name = 'xt-domain-layer'
include 'xt-web'
現在從根項目graldetinker
當我運行\gradletinker>gradlew projects
我沒有得到上市
------------------------------------------------------------
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
任何想法,我錯了子模塊xt-web
?
爲什麼在你的xt-domain-layer的setting.gradle中沒有'include ...'行?你使用include行添加一個子模塊。 – RaGe