# Version is root build.gradle buildscript is overriding subproject buildscript dependency versions

**URL:** https://discuss.gradle.org/t/version-is-root-build-gradle-buildscript-is-overriding-subproject-buildscript-dependency-versions/20746
**Category:** Help/Discuss
**Created:** [December 7, 2016, 8:39pm UTC](https://discuss.gradle.org/t/version-is-root-build-gradle-buildscript-is-overriding-subproject-buildscript-dependency-versions/20746 "2016-12-07T20:39:55Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![zagyvaib](https://avatars.discourse-cdn.com/v4/letter/z/f04885/32.png) [@zagyvaib](https://discuss.gradle.org/u/zagyvaib)
#### Post date: [October 25, 2018, 10:34pm UTC](https://discuss.gradle.org/t/version-is-root-build-gradle-buildscript-is-overriding-subproject-buildscript-dependency-versions/20746/3 "2018-10-25T22:34:53Z")

</div>

The inability of using the desired version of an external dependency in the build script of a subproject in case another version of that dependency is loaded by the build script of the parent project causes subtle bugs that are very hard to track down. The issue is even less obvious if the parent project just transitively loads that dependency.

Would it be possible to detect such situations and display a warning?

The deceptive information shown by the `buildEnvironment` task is also problematic.

In any case it would be nice to at least document this behavior in the [User Guide](https://docs.gradle.org/current/userguide/tutorial_using_tasks.html#sec:build_script_external_dependencies).

---

_[View the full topic](https://discuss.gradle.org/t/version-is-root-build-gradle-buildscript-is-overriding-subproject-buildscript-dependency-versions/20746)._
