Hi Gradle developers,
the underlaying technologie is great - thanks for all the effort, though I think the usability and ease of understand build scripts could be better.
Therefore I would love to make some suggestions.

Namespace.
It is very confusing to me when reading other gradle files what is a user defined variable and what is a variable defined by gradle. I think it would make a lot of sense to have as less as possible key words or gradle defined variables. Therefore I suggest to ''prefix" in a oo style all gradle defined variables.

So instead of having:
group = 'net.sf.katta'
version = '1.0-SNAPSHOT'
...

I would prefer something like:
project.version = '1.1'
project.group = 'net.sf.katta'

This would give readers more context and naturally better to understand.

Also instead of
usePlugin('java')
sourceCompatibility = 1.5
targetCompatibility = 1.5

I think it would be much better to understand to this kind of syntax:
usePlugin('java')
java.sourceCompatibility = 1.5
java. targetCompatibility = 1.5

That would be a great general pattern for plugins. Adding the plugin by usePlugin('myPlugin') and than just configuring it by defining properties by myPlugin.propertyName = value. I think this is much easier and more natural to understand for an developer.

Look how beautiful a build script could look like: :-D


project.version = '1.1'
project.group = 'net.sf.katta'

usePlugin('java')
java.sourceCompatibility = 1.5
java. targetCompatibility = 1.5


usePlugin('myPlugin')
myPlugin.propertyName = value

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

   http://xircles.codehaus.org/manage_email


Reply via email to