On 4/07/10 2:00 AM, Russel Winder wrote:
The Gant distribution upload code starts thus:

         configurations { distribution }

         artifacts {
           distributionTasks.each { task ->  distribution ( task ) }
         }

distributionTasks is a list of tasks.  This works fine.  I am trying to
add the creation and uploading of debs to the build.  I therefore tried:

         configurations { debs }

         artifacts {
           debTasks.each { task ->  debs ( task ) }
         }

where debTasks is a list of tasks.  This gives me the error:

         Cause: Notation is invalid for an artifact! Passed notation=task 
':standaloneDeb'

the error is associated with "debs ( task )".  I really do not
understand why this fails whilst "distribution ( task )" works.

Anyone any ideas?

You can only add archive tasks to a configuration. Otherwise, you have to add the artifact manually. There's some detail in this thread: http://markmail.org/thread/niseybxbjynckr2c

We will make this easier to do when we revise the publishing DSL after the 0.9 release.

--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to