With the new resolver notation all the paramter are named via the map notation. Name is now optional.

For flatDir you either have to specify rootDir or rootDirs. The first takes a single argument the second one a list.

flatDir(rootDir: "$path")
flatDir(rootDirs: ["$path1", "$path2"]

The objective for having two parameters is that a single root dir is so common, that we want to save our users the list notation in this case. Of course we could have one parameter and accept normal objects and lists and then figure this out. But how should we name this parameter in regard to the singular/plural here. Thought?

Should we call the parameter rootDir (as it is now) or just dir?

mavenRepo(rootRepo: "$url1", jarOnlyRepos: ["$url1", "$url2"])

Should we call the parameters rootRepo and jarOnlyRepos, or should we call them root and jarOnly?

As setting the jarOnlyRepos is not that common, there is no singular version of this parameter.

- 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