On 12/11/2010, at 2:12 AM, richardm wrote:
>
> Another related question: are repositories used to publish my generated
> artifacts AND resolve dependancies or are they just for publishing?
The repositories declared in the repositories { } section are used for
dependencies only.
The repositories declared in the uploadArchives task are used for publishing.
eg
repositories {
flatDirs dir: 'some-dir' // only for resolving dependencies
}
uploadArchives {
repositories {
flatDirs dir: 'some-other-dir' // only for publishing
}
}
--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz