tbee wrote:
>
>
> Got it to work:
>
> configuration = project.getConfigurations().getByName('archives');
>
>
Sorry for the flood; every time I think I got something figured out, some
more tests show that I'm wrong. It's not the setting of the configuration
that is wasn't working, but the way the tasks were defined.
This results in a NPE:
task uploadReleases(type: Upload, dependsOn: build) << {
configuration = configurations.archives
...
This works:
task uploadReleases(type: Upload, dependsOn: build) {
configuration = configurations.archives
...
This works as well:
tasks.add(name: 'uploadReleases', type: Upload, dependsOn:
uploadSnapshots)
uploadReleases {
configuration = configurations.archives
...
In the documentation adding tasks with and without "<<" often is mixed. Need
to figure out where the closures differ from a regular block.
--
View this message in context:
http://old.nabble.com/difference-between-uploadArchives-and-custom-task-tp26920056p26925922.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email