On Oct 18, 2009, at 12:29 PM, Hans Dockter wrote:


On Oct 16, 2009, at 11:11 AM, 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?

This is the same issue as with the buildDependencies. This should work automatically (and for most of our tasks it does). There is a bug in the Upload task that this does not happen.

The basic mechanism is that every input property (or getter) that is annotated with the @InputFile(s) property is autowired. We have forgotten to annotate the configuration property in the Upload task. Could you file a Jira?

I have written this email in the plan and it got send with a delay. Adam was faster filed a Jira and fixed it already.

- Hans

--
Hans Dockter
Gradle Project Manager
http://www.gradle.org

Reply via email to