I am trying to create a distribution release task for the Gant project
-- but you probably already guessed that from yesterday's questions :-).

Reading the Gradle build file, I thought I should try the following for
Gant:

        configurations { distribution }
        
        artifacts {
          distributionTasks.each { task -> distribution task }
        }
        
        dependencies {
          distribution ( 'org.apache.maven.wagon:wagon-webdav:1.0-beta-2' )
        }
        
        task buildDistribution ( dependsOn : distributionTasks , description : 
'Build all the uploadable distribution archives.' )
        
        uploadDistribution {
          dependsOn ( buildDistribution )
          uploadDescriptor = false
          repositories {
            configuration = configurations.distribution
            repository ( url : 
'https://dav.codehaus.org/dist/gant/distributions' ) {
              authentication ( userName : gant_repoUserName , password : 
gant_repoPassword )
            }
          }
        }
        
        gradle.taskGraph.whenReady { graph ->
          if ( graph.hasTask ( uploadDistribution ) ) {
            // Ensure these properties are defined.  Fail early if they are not.
            gant_repoUserName
            gant_repoPassword
          }
        }

however this does not define a task uploadDistributions so I can't call
it.  I must be doing something trivially wrong.  Anyone any ideas?

Thanks.


-- 
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: [email protected]
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:[email protected]
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to