On 23/11/2012, at 10:40 PM, Luke Daley wrote:
> We use a RepositoryHandler for publishing.repositories, and RepositoryHandler
> is a NamedDomainObjectList<ArtifactRepository>.
>
> This makes sense for resolving because the order of repositories is
> important. For publishing though, this doesn't hold. For publishing, it
> really is very much a Set.
>
> Not sure what to do about this. It's not _that_ bad because RepositoryHandler
> has some logic in it to uniqueify the names of the repos, which is the
> biggest danger in using a list for publications.
A worse problem would be where the destination is duplicated, e.g. when I
accidentally call repositories.ivy { url 'my url' } multiple times.
Let's leave it for now and see what comes out of the upcoming publishing work.
--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com