Builds are run in the order of subproject, main project, but when there are multiple subprojects added, the build order of subprojects is their display order on the project tree.
To change the display order of the subprojects on the project tree, drag the subproject to be moved and drop it on the desired location.
However, when dependent projects have been set, builds of those projects are run first.
Dependent projects are set in the Dependent Projects Settings dialog box which is opened by selecting the [Project] menu >> [Dependent Projects Settings...].
Select the dependent-source project in [Project], select a project to be referenced as the dependent project from a check box in [Dependent projects], and click the [OK] button.
SubProject1 -> SubProject2 -> SubProject3 -> SubProject4 -> MainProject
Builds are run in the following order when MainProject and SubProject2 are set as dependent projects for SubProject1 and SubProject4 is set as the dependent project for SubProject2. |
SubProject4 -> SubProject2 -> MainProject -> SubProject1 -> SubProject3