0

I have a multi modules gradle build as follow

root \
    moduleA \
    moduleB \
    moduleC \

where moduleB depends on moduleA.

I want moduleB to be built last regardless whether moduleB depends on moduleCor not. Is there a way to do that?

Wins
  • 3,420
  • 4
  • 36
  • 70

1 Answers1

1

You can use evaluationDependsOn

project(':moduleB') {
    evaluationDependsOn(':moduleC')
}
AdamSkywalker
  • 11,408
  • 3
  • 38
  • 76