# How to get the dependencies from a custom plugin

**URL:** <https://discuss.gradle.org/t/how-to-get-the-dependencies-from-a-custom-plugin/10691>\
**Category:** Help/Discuss\
**Tags:** plugins\
**Created:** [July 20, 2015, 3:14pm UTC](https://discuss.gradle.org/t/how-to-get-the-dependencies-from-a-custom-plugin/10691 "2015-07-20T15:14:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![juanmabarrio](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@juanmabarrio](https://discuss.gradle.org/u/juanmabarrio)\
**Post date:** [July 21, 2015, 9:10am UTC](https://discuss.gradle.org/t/how-to-get-the-dependencies-from-a-custom-plugin/10691/4 "2015-07-21T09:10:40Z")

</div>

Thank you again.  
How do I get all the transitive dependencies? Now I get the dependencies stated in build.gradle from my “compile” configuration, but not the dependencies of those dependencies. I see that this groovy task defined in my build.gradletask

```
copyDependencies(type: Copy) {
   from configurations.compile
   into 'lib'
}

```

copies all the transitive dependencies to lib. I need to get them in my custom plugin too.

Thank you very much.

---

_[View the full topic](https://discuss.gradle.org/t/how-to-get-the-dependencies-from-a-custom-plugin/10691)._
