I have a library, which contains 3 lib modules and 1 example module. Before deploy task I want to execute some other tasks. In command line it looks like this: ./gradlew -x:example:clean -x:example:check -x:example:uploadArchives clean check :androidLib:assembleRelease uploadArchives.
I want to write gradle task to execute all tasks sequentially for all modules besides example module. That I can do: ./gradlew deployAll. How can i do it?
can you use dependsOn, mustRunAfter and shouldRunAfter to model your dependencies? IIUC, you want the deployAll task to depend on clean and check, right? Is that all you need to do?