I assume that the task that ‘dist’ depends on, ‘spiJar’, does not exist in your build script. You can either create another task with that name or remove the ‘dependsOn’ declaration. That should fix your build.
Following the example in section 7.3.4 of the documentation at the link I included above, you will see that the ‘dist’ task is indeed defined in the build script for the sub-project.
We should improve on this part of the documentation. Would you be willing to help out with that? We’d love to see contributions on the documentation as it is an important part of Gradle. If you decide to submit a pull request, please make sure to sign the CLA and send it back to us. Please also have a look at the Gradle development guideline page for more information on the contribution process. Thanks for you help!
I would love the opportunity to help improve the docs, but I’m still a real novice at Gradle so I don’t know that my contributions would be useful unless they were properly reviewed by other people who would probably be able to write my contributions better in the first place
We are starting a long project and chose to use Gradle so once I’ve climbed the learning curve, I’ll get back to you.