Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19859

HowTo : control build order of gradle subprojects submodules?

$
0
0

Your requirement sounds reasonable to me as I have the same use case myself. You can control task ordering between projects manually using dependsOn, but when the number of projects increases it becomes unmanageable.

I wrote the Project Order Plugin to control ordering of specific tasks between projects. It works on numerical then alphabetical ordering of project names. e.g.

/my-project
/my-project/1-networking-resources
/my-project/2-security-resources
/my-project/3-compute-resources

It doesn’t do anything with renaming, as you can normally set the artifact name manually for whatever type of artifact you’re creating. e.g. for the Java plugin you can name the jar file using the archivesBaseName configuration parameter.

I know I’m a bit late to the party here, but any feedback on whether this solves your use case would be appreciated.


Viewing all articles
Browse latest Browse all 19859

Trending Articles