# uploadArchives including dependencies

**URL:** <https://discuss.gradle.org/t/uploadarchives-including-dependencies/3112>\
**Category:** Old Forum Archive\
**Created:** [March 12, 2015, 9:52am UTC](https://discuss.gradle.org/t/uploadarchives-including-dependencies/3112 "2015-03-12T09:52:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raoul\_Becke](https://avatars.discourse-cdn.com/v4/letter/r/b4bc9f/32.png) [@Raoul\_Becke](https://discuss.gradle.org/u/Raoul_Becke)\
**Post date:** [March 12, 2015, 9:52am UTC](https://discuss.gradle.org/t/uploadarchives-including-dependencies/3112/1 "2015-03-12T09:52:00Z")

</div>

Hi, Is there a way to upload archives including dependencies i.e. that all the dependencies (compile and/or runtime) artifacts are as well uploaded from the remote repository into my own repository (in case the remote repository and/or library is not available anymore it is still available in my own repository)?

The only answer but which was not satisfactory I found here (from Peter Niederwieser - November 2012): [http://stackoverflow.com/questions/13511802/publish-dependencies-of-an-artifact-with-gradle](http://stackoverflow.com/questions/13511802/publish-dependencies-of-an-artifact-with-gradle) … There isn’t currently an easy way to achieve this with Gradle; you’ll have to script your own solution. In particular, you’ll have to find a way to recreate the original POM when publishing the archive…

How can I solve this problem or can you maybe provide a script that solves this problem?

Thank you
