Chapter 65.6 of the user guide states that access to the publication tasks should be done in a ‘publishing’ block. But, the sample contradicts this, since it puts the access in a ‘model’ block.
What is correct? The ‘publishing’ block or the ‘model’ block? And what does the ‘model’ block mean?
Any clarification would be appreciated. Thanks in advance.
In that case, the sample is correct and the User Guide needs to be updated. Conversion to model rules is a work in progress, so you may want to stick with Gradle 2.0 for now.