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.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email