On Apr 17, 2009, at 7:14 PM, Steve Appling wrote:

I know this is a work in progress, but thought some feedback might be useful now.

The configuration DSL as implemented differs some from the proposal at http://docs.codehaus.org/display/GRADLE/Dependencies

The proposal was:
configurations {
  newConf extends: compile, transitive: true
  // alternatively
  newConf {
     extends = compile
     transitive = true
  }
  existingConf transitive: true
}

The map based syntax does not appear to work - I'm hoping this is just not implemented yet, because it is nice and concise :)


The more verbose syntax options that works are:
configurations {
 newConf {
     extendsFrom compile
     //or
     extendsFrom = [compile]

     transitive = true
 }
}

The following, however, does not work
configurations {
  newConf {
     extendsFrom = compile
     transitive = true
  }
}


Configuration.setExtendsFrom takes a Set of superConfigs not a single one. This is awkward and most usages will probably have only a single parameter. Perhaps this should work with both a list and a single Configuration as was discussed for flatDir earlier today.

We will implement the missing bits in 0.7. I have filed a Jira: 
http://jira.codehaus.org/browse/GRADLE-476

This will be part of a generic configuration by map functionality. It is not that hard to implement but we want to ship 0.6 soon. As this is about adding functionality, we postpone it therefore.

- Hans

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





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

   http://xircles.codehaus.org/manage_email


Reply via email to