This new publishing mechanism will eventually replace the current mechanism of upload tasks and configurations. At this time, it is an incubating feature and under development.
The PublishingExtension is a {@link org.gradle.api.plugins.DeferredConfigurable} model element, meaning that extension will be configured as late as possible in the build.So any 'publishing' configuration blocks are not evaluated until either:
A 'publishing' configuration block does not need to dereference the publishing extension, and so will be evaluated late. eg:
publishing { publications { ... } repositories.maven { ... } }
Any use that accesses the publishing extension as an instance does require the publishing extension to be realised, forcing all configuration blocks to be evaluated. eg:
publishing.publications { ... } publishing.repositories.maven { ... }@since 1.3
|
|