Did you try something like

jar.dependsOn task(':api:pricing:copyDataSource')

? AFAIU, in "dependencies" closure you specify the libraries your projects
depends on (more precisely, you specify contents of "configurations"). Task
dependencies are set by dependsOn method of the tasks.

LT

2011/6/1 StormeHawke <[email protected]>

> I've tried to do this several different ways with no success, and I'm not
> finding anything in the docs to tell me how to do it.  Can anybody help me
> out?
>
>
>        dependencies {
>                compile project(':api:util')
>                compile task(':api:pricing:copyDataSource') <-- This is what
> I need to add
> to the jar task dependencies
>
>                compile 'org.springframework:spring:2.5.6.SEC01'
>                compile 'org.drools:drools-core:5.0.1'
>                compile 'org.drools:drools-api:5.0.1'
>                compile 'org.drools:drools-compiler:5.0.1'
>        }
>
> The copyDataSource task simply needs to run, all it does is it copies a
> spring datasource configuration file into src/main/resources depending on
> which of our servers we're deploying our applications to.
>
> --
> View this message in context:
> http://gradle.1045684.n5.nabble.com/Notation-for-adding-a-task-dependency-to-the-jar-task-tp4445758p4445758.html
> Sent from the gradle-user mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/ <http://xircles.codehaus.org/manage_email>

Reply via email to