# Project dependencies participate in conflict resolution

**URL:** <https://discuss.gradle.org/t/project-dependencies-participate-in-conflict-resolution/18875>\
**Category:** Bugs\
**Tags:** not-a-bug\
**Created:** [August 9, 2016, 5:14pm UTC](https://discuss.gradle.org/t/project-dependencies-participate-in-conflict-resolution/18875 "2016-08-09T17:14:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danny\_Thomas1](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@Danny\_Thomas1](https://discuss.gradle.org/u/Danny_Thomas1)\
**Post date:** [August 9, 2016, 5:14pm UTC](https://discuss.gradle.org/t/project-dependencies-participate-in-conflict-resolution/18875/1 "2016-08-09T17:14:46Z")

</div>

Gradle Version: 2.13  
Operating System: macOS  
Is this a regression? No

If a binary dependency comes into a multiproject build that’s provided by that project (technically a circular dependency, but it happens), the project dependency participates in conflict resolution, so if the version is not greater or specified at all, the binary dependency wins. For example:

```
apply plugin: 'java'

repositories {
    jcenter()
}

dependencies {
    compile project(':commons-logging')
    compile 'commons-logging:commons-logging:1.2'
}

project(':commons-logging') {
    apply plugin: 'java'

    group 'commons-logging'
    version '1.2'
}

```

Has the expected behavior:

```
compile - Dependencies for source set 'main'.
+--- project :commons-logging
\--- commons-logging:commons-logging:1.2 -> project :commons-logging

```

If you remove the version from the `commons-logging` subproject:

```
compile - Dependencies for source set 'main'.
+--- project :commons-logging -> commons-logging:commons-logging:1.2
\--- commons-logging:commons-logging:1.2

```

The project dependency should always win, in my opinion.

---

<div class="post-metadata">

**Author:** ![mark\_vieira](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/mark_vieira/32/5396_2.png) [@mark\_vieira](https://discuss.gradle.org/u/mark_vieira)\
**Post date:** [August 9, 2016, 6:07pm UTC](https://discuss.gradle.org/t/project-dependencies-participate-in-conflict-resolution/18875/2 "2016-08-09T18:07:02Z")

</div>

There is an open [pull request](https://github.com/gradle/gradle/pull/652) and corresponding [design document](https://github.com/gradle/gradle/pull/596) for this.
