not sure, if this can help ...
something from the users-guide:
if (build.taskGraph.hasTask(':release')) {
version = '1.0'
} else {
version = '1.0-SNAPSHOT'
}
have a nice day
Phil Messenger wrote:
>
> Hi,
>
> I'm busy cleaning up some plugins we're using internally and have hit
> another interesting problem. I've got a "release" task, which depends on
> the execution of a "deploy" task AFTER the release task has finished
> executing.
>
> At the moment I'm doing something hideous to enforce this dependency -
> doing a check at runtime to see if the "deploy" task is in the task dag.
> The net effect of this is loads of "if(shouldExecute(project))" calls
> scattered around my plugins.
>
> So is there an easy or better way of depending on the future execution of
> another task? Or should I open a JIRA issue?
>
> Phil.
>
--
View this message in context:
http://www.nabble.com/%22forward%22-task-dependencies---more-plugin-fun-tp20147831p20149290.html
Sent from the gradle-dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email