i am having a strong feeling about plugins, and that is: 

that plugins should be defined as build configuration (i.e. .gradle) files,
exactly the same as the build.gradle file you create in order to define your
build.

After all, functionally, they do exactly the same thing don't they? And, if
that is so, surely the best way of defining them would be as .gradle files.
And if that's not the best and easiest way of defining them, then shouldn't
it be?

Then at the top of your build file you can have something like an 'include'
or 'extend' listing the .gradle files you want to use. On top of this all
.gradle files can become plugins, i.e. be reused by other builds. This makes
modularisation of build files far more possible.

The original reason i came to this conclusion is that i was writing a
'webTest' task that i knew was very nearly the same as the test task defined
for the java plugin. So i then looked to see how this was defined. But my
task would have been a lot easier if i could like in a .gradle file for this
def (since this would be form i would be writing it in), rather than a
somewhat more obscure .java def.

What do you think?
-- 
View this message in context: 
http://www.nabble.com/should-plugins-be-.gradle-files--tp21793271p21793271.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


Reply via email to