On Feb 26, 2009, at 4:30 PM, Hans Dockter wrote:


On Feb 26, 2009, at 4:26 PM, Peter Niederwieser wrote:


I agree with all of Sczcepan's points. The more declarative the better.
MavenCentralRepo is better than OfficialMavenRepo, even though I once
suggested the latter. :-) Also I've always wondered why it's mandatory to specify a repository name, and what this name is used for (log output?).

It is used for log output. It can also be used to get a reference back for a resolver object.

I have thought about this a little bit more. There is the common scenario where you use a resolver only for resolving dependencies. In this case you shouldn't be required to pass a name. For log output Gradle should be able to generate a good enough name automatically (if this is not good enough, you can still specify it). If you use a resolver for publishing, you might want to have a name. You can use this name to associate the resolver with an upload task (but you can also use a reference for this). So all in all, names should be optional, which is an important requirement for the DSL, as some syntaxes work only with required names.

- Hans





Cheers,
Peter


Szczepan Faber wrote:

Hi,

we are working intensely on Gradle 0.6. One focus is to make our DSL more
intuitive.

Cool! Here is my feedback on the syntax.

1. Personally, I'd like to recommend 'declarative' style of naming.
Example:

'create', 'addMavenRepo' (old syntax), etc are not really declarative
- they express operations.

But:

'dependencies', 'repositories', 'dependsOn', etc are declarative and
therefore consistent & very nice to read.

So instead of :

create('myRepoName').asOfficialMaven()

I'd vote for:

officialMaven()  or  repository('myRepoName').isOfficialMaven()
flatDir(...) or repository("libs").isFlatDir(...)

2. Skipping repo names if I don't need them would be cool as well but
I have no idea what repercussions does it have.

3. I'd probably prefer 'mavenCentral' to 'officialMaven' because the
first one is very commonly used. Try google for 'official maven' and
'maven central' :)

This feedback is just my humble POV so use whatever you want from it :)

Cheers,
Szczepan Faber

On Thu, Feb 26, 2009 at 2:33 PM, Hans Dockter <m...@dockter.biz> wrote:
Hello,

we are working intensely on Gradle 0.6. One focus is to make our DSL more intuitive. To achieve this we are improving the syntax of the DSL as well
as
how the different elements play together.

Here is a link to the current draft of the new DSL:
http://docs.codehaus.org/display/GRADLE/Dependencies

We are very interested in your feedback.

- Hans

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





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

 http://xircles.codehaus.org/manage_email




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

  http://xircles.codehaus.org/manage_email





--
View this message in context: 
http://www.nabble.com/New-DSL-for-0.6-tp22224115p22226458.html
Sent from the gradle-user mailing list archive at Nabble.com.


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

  http://xircles.codehaus.org/manage_email



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





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

  http://xircles.codehaus.org/manage_email



--
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