Steven Devijver wrote:
Hey,

Right now there is a redundancy in the typical configuration of the Upload task:

task moduleJar(type: Jar) {
destinationDir = file('build/jar_for_module')
}
artifacts {
archives moduleJar
}
task uploadArchives(type: Upload) {
dependsOn moduleJar
configuration = configurations.archives
repositories {
  flatDir(dirs: dist_dir)
}
}

There's the "archives moduleJar" call and the redundant "dependsOn moduleJar" call. Since the Upload task also requires the Configuration object, is it possible to automatically feed the dependsOn() method?


A good idea. This is done in trunk: http://jira.codehaus.org/browse/GRADLE-709


--
Adam Murdoch
Gradle Developer
http://www.gradle.org

Reply via email to