# Dependency between projects not working

**URL:** <https://discuss.gradle.org/t/dependency-between-projects-not-working/3775>\
**Category:** Old Forum Archive\
**Created:** [November 14, 2013, 9:51pm UTC](https://discuss.gradle.org/t/dependency-between-projects-not-working/3775 "2013-11-14T21:51:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yong\_Cheng](https://avatars.discourse-cdn.com/v4/letter/y/e19adc/32.png) [@Yong\_Cheng](https://discuss.gradle.org/u/Yong_Cheng)\
**Post date:** [November 14, 2013, 9:51pm UTC](https://discuss.gradle.org/t/dependency-between-projects-not-working/3775/1 "2013-11-14T21:51:00Z")

</div>

My case is: Having a custom configuration - myArchives, and project A is depending on the archives of project B, but when uploading archives the order is A, B. So seem like the dependencies section is not resolve the order correctly. The right order should be B, A

build.gradle under A project

```gradle
configurations {
    myArchives{
        transitive = false
    }
}
  dependencies {
    myArtifact(
            project(path:':B', configuration:'archives')
    )
}

```

---

<div class="post-metadata">

**Author:** ![Peter\_Niederwieser](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@Peter\_Niederwieser](https://discuss.gradle.org/u/Peter_Niederwieser)\
**Post date:** [November 16, 2013, 1:50am UTC](https://discuss.gradle.org/t/dependency-between-projects-not-working/3775/2 "2013-11-16T01:50:00Z")

</div>

Assuming ‘myArtifact’ should be ‘myArchives’ in the code above, and that project A has the ‘java’ plugin applied, you’ll get an ‘🅰uploadArchives’ and an ‘🅰uploadMyArchives’ task. Anyhow, the order in which A’s and B’s upload tasks are executed shouldn’t matter, as these are independent operations.
