On Feb 27, 2011, at 1:43 AM, Niclas Hedhman wrote:

> Hi,
> 
> In the middle of the build, I have the following task executed;
> 
> :org.qi4j.tutorials:org.qi4j.tutorial.services:jar
> :org.qi4j.tutorials:jar
> :jar
> :tarBinaries
> :tarSources
> :zipBinaries
> :zipSources
> :org.qi4j.core:org.qi4j.core.api:assemble
> 
> Why are those tar/zip tasks being called at all?? I am calling gradle with
> 
> ./gradlew clean build

build depends upon the assemble task, and assemble depends upon all archive 
(Zip, Tar, Jar, War) tasks in the project.

See <http://gradle.org/0.9.2/docs/userguide/userguide_single.html#N11758>, 
specifically "Table 20.3. Java plugin - lifecycle tasks" - the assemble task 
depends on "All archive tasks in the project..."

You can also look at the output of "./gradlew tasks" to see a list of available 
tasks and those they depend upon.

- Ben


> The relevant (I think) gradle code;
> 
> task zipBinaries(type: Zip) {
>  classifier = 'bin'
>  with binDistImage
>  into "$rootProject.name-$version"
> }
> 
> task tarBinaries(type: Tar)  // TODO
> 
> task uploadDists(dependsOn: ['zipSources', 'tarSources',
> 'zipBinaries', 'tarBinaries']) {
> 
> }
> 
> task release {
>  description = 'Builds, tests and uploads the release artifacts'
>  group = 'release'
>  dependsOn uploadDists
> }
> 
> 
> 
> -- 
> Niclas Hedhman, Software Developer
> http://www.qi4j.org - New Energy for Java
> 
> I live here; http://tinyurl.com/3xugrbk
> I work here; http://tinyurl.com/24svnvk
> I relax here; http://tinyurl.com/2cgsug
> 
> ---------------------------------------------------------------------
> 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


Reply via email to