Hello,

Am 22.06.2010 um 06:19 schrieb Adam Murdoch:

> The compileJava declares that it depends on the compile configuration, and 
> Gradle takes care of wiring up the task dependencies.
> 
> For a custom task in your build script, you can do something like:
> 
> task mytask {
>    dependsOn configurations.compile
>    doFirst { .. do something with configurations.compile .. }
> }

Argh. This somehow seems obvious, now that you say it. This is exactly what I 
need. Now tell me that this is mentioned in the user guide and I will hide in 
the corner deeply embarrassed.

>>  I'm currently trying to port clojuresque to 0.9. And things have changed 
>> (again :( ) quite significantly.
> 
> Some things have changed, but not how you use a configuration. If you need to 
> depend on uploadInternal, you're possibly hooking in at too low a level. The 
> uploadInternal task is, well, an internal part of the implementation, and you 
> shouldn't need to do anything with it directly. And in 0.9, this task no 
> longer exists.

Depending somehow on uploadInternal was actually only a guess. I tried to 
figure out how Compile etc. do it. I did this mainly by trying to understand 
how the included plugins, which is not necessarily trivial.

>>  Is there some overview for plugin writers what to consider when writing a 
>> plugin and how to hook into the system in the Right Way(tm)?
>>   
> 
> Unfortunately, not really. There is a chapter in the user guide for how to 
> write tasks, and another for how to write plugins. But they still need a lot 
> of work.
> 
> After the Gradle 0.9 release, we're hoping to do some work to make it easier 
> to write and share plugins. Some better documentation would be part of this. 
> Any suggestions are welcome.

Having this easy way to deploy a plugin in lib/plugins is already taking away a 
lot of boilerplate for the buildscript. Also being able to add conventions to 
repositories is a big win to make things feel more gradley. So at least from 
the "share" point of view, gradle is already quite far. The "write" part is 
still a bit foggy.

Thank you for your hints. I found another nice community it seems. :)

Sincerely
Meikel


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

    http://xircles.codehaus.org/manage_email


Reply via email to