1
我有項目的結構,其具有搖籃模塊生成訂貨
root
|_ core
|_ integration-test
|_ web
幅模塊的模塊是依賴於芯模塊上。 集成測試模塊依賴於web模塊。
settings.gradle
include 'core', 'web', 'integration-test'
當我執行gradle這個構建
./gradleW clean build
默認情況下,gradle這個將建在阿爾法neumeric爲了這個項目,所以它會建立這樣
:core:clean
:integration-test:clean
:web:clean
...
我怎樣才能重寫順序,使它應該像這樣構建?
:core:clean
:web:clean
:integration-test:clean
...
注意:要測試的順序,我在網絡和集成測試模塊失敗的測試,雖然unfornately集成,測試始終是第一位的網站之前。
您可以爲此定義依賴關係http://stackoverflow.com/questions/20978020/gradle-project-build-order-for-maven-tasks –
我已經這樣做,因此它在模塊依賴關係之間成功編譯,但我關心的是構建命令 – richersoon