To selectively swap dependencies, you can do:

dependencies {
  runtime "org:some-dep:1.0"
  testRuntime "org:other-dep:2.0"
}

configurations {
  testRuntime.exclude module: "some-dep"
}

--
Peter Niederwieser 
Developer, Gradle
http://www.gradle.org
Trainer & Consultant, Gradle Inc.
http://www.gradle.biz
Founder, Spock Framework
http://spockframework.org
-- 
View this message in context: 
http://gradle.1045684.n5.nabble.com/Removing-pre-defined-dependency-tp3369268p3369608.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to