A multi-project build in gradle consists of one root project, and one or more subprojects that may also have subprojects.
I am trying to understand what this means in my situation. I typically have two-level projects. The subprojects apply plugins with the task ‘rpm’ and then at the top level I can issue the command
./gradlew clean rpm and each rpm is built by the subprojects.
Now I want to have a three-level hierarchy. Again, only the lowest level subprojects have
rpm tasks. But when I issue
./gradlew clean rpm from the top level or
../gradlew clean rpm from the middle level, it complains
Task ‘rpm’ not found in root project
What must I do to make this sort of setup work?