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?

Thanks

Steven


      

Reply via email to