Hello Niclas,
using the from(source, Closure) syntax to define your spec should do the trick:


libsImage = copySpec {
    releaseApprovedProjects.collect { proj ->
      if( proj.group == 'org.qi4j.core' )
      {
        from (proj.configurations.runtime){
          into("libs")
        }
      }
      else if( proj.group == 'org.qi4j.library' )
      {
        from(proj.configurations.runtime){
          into("libs/libraries/$proj.name")
        }
      }
      else if( proj.group == 'org.qi4j.extension' )
      {
        from(proj.configurations.runtime){
          into("libs/extensions/$proj.name")
        }
      }
    }
  }

regards,
René

4. März 2012 08:15
How do I obtain the originating URLs for artifacts in the 'runtime'
configuration ??


Cheers


Reply via email to