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?).
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 <[email protected]> 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