How can i conditionally include a dependency in the dependencies step?


(Jay Vyas) #1

I want to do something akin to :

dependencies {

if(x==1)

testCompile module(‘org.codehaus.the-x-dep:mydep:1.2.3’)

else

testCompile module(‘org.codehaus.another-dep:mydep:1.2.3’)

}