# Substitution of transitive dependency pulls in all artifacts of substituting project

**URL:** <https://discuss.gradle.org/t/substitution-of-transitive-dependency-pulls-in-all-artifacts-of-substituting-project/17993>\
**Category:** Bugs\
**Tags:** issue-acknowledged, gradle-3542\
**Created:** [June 10, 2016, 4:37am UTC](https://discuss.gradle.org/t/substitution-of-transitive-dependency-pulls-in-all-artifacts-of-substituting-project/17993 "2016-06-10T04:37:47Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Chris\_Dore](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/chris_dore/32/7592_2.png) [@Chris\_Dore](https://discuss.gradle.org/u/Chris_Dore)\
**Post date:** [June 17, 2016, 7:27pm UTC](https://discuss.gradle.org/t/substitution-of-transitive-dependency-pulls-in-all-artifacts-of-substituting-project/17993/3 "2016-06-17T19:27:21Z")

</div>

The situation is actually a bit worse. I just discovered that dependencies of any configuration in the subproject are also pulled in, even when not related to an artifact of the subproject.

IE, add:

```
subprojects {
    configurations {
        otherConfig3
    }
    dependencies {
        otherConfig3 'jmock:jmock:1.1.0'
    }
}

```

and now we get:

```
:useFiles
dep /home/cdore/.gradle/caches/modules-2/files-2.1/junit/junit/4.12/2973d150c0dc1fefe998f834810d68f278ea58ec/junit-4.12.jar
dep /home/cdore/gradle-configurationartifacts-test/subproject/build/libs/subproject-other2.jar
dep /home/cdore/gradle-configurationartifacts-test/subproject/build/libs/subproject.jar
dep /home/cdore/gradle-configurationartifacts-test/subproject/build/libs/subproject-other.jar
dep /home/cdore/.gradle/caches/modules-2/files-2.1/jmock/jmock/1.1.0/90e87194c8113e1901d7196b359e48f9eb9c63d/jmock-1.1.0.jar
```

---

_[View the full topic](https://discuss.gradle.org/t/substitution-of-transitive-dependency-pulls-in-all-artifacts-of-substituting-project/17993)._
