# What kind of dependency is this?

**URL:** https://discuss.gradle.org/t/what-kind-of-dependency-is-this/11557
**Category:** Help/Discuss
**Created:** [September 10, 2015, 10:14am UTC](https://discuss.gradle.org/t/what-kind-of-dependency-is-this/11557 "2015-09-10T10:14:04Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![kolle](https://avatars.discourse-cdn.com/v4/letter/k/aeb1de/32.png) [@kolle](https://discuss.gradle.org/u/kolle)
#### Post date: [September 17, 2015, 9:35pm UTC](https://discuss.gradle.org/t/what-kind-of-dependency-is-this/11557/2 "2015-09-17T21:35:41Z")

</div>

It worked putting the copy into a closure as stated here:

> [@Right way to copy contents from dependency archives?](https://discuss.gradle.org/t/right-way-to-copy-contents-from-dependency-archives/7449/13):
>
> An idiomatic solution would look like this: configurations { api } dependencies { api 'somegroup:someArtifact:someVersion' } task extractApi(type: Sync) { dependsOn configurations.api from { // use of closure defers evaluation until execution time configurations.api.collect { zipTree(it) } } into "$buildDir/api/" }

---

_[View the full topic](https://discuss.gradle.org/t/what-kind-of-dependency-is-this/11557)._
