> > The assemble task is a task with a dynamic dependsOn. You could define a
> > similar task as a one liner:
> >
> > task myAssemble(dependsOn: { tasks.withType(Zip).all })
>
> That's fine so far.
> But can I do the opposite?
>
> I use the java plugin - and I guess, something similar of the above is part
> of
> the plugin.
>
> Do I need to write my own plugin to break that "hidden" dependencies, or
> can I
> change that behavior by configuration?
>

Sorry for the late response.

What you can do is to reconfigure the assemble task. For example:

assemble.dependsOn tasks.withType(Zip).matching { task -> task.name !=
'someName' }

or

assemble dependsOn jar1, jar2

- Hans

--
Hans Dockter
Founder, Gradle
http://www.gradle.org, http://twitter.com/gradleorg
CEO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz


> kind regards
>
> Geronimo
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

Reply via email to