# Eclipse Gradle dependency for a war module

**URL:** <https://discuss.gradle.org/t/eclipse-gradle-dependency-for-a-war-module/10190>\
**Category:** Help/Discuss\
**Created:** [June 19, 2015, 6:10pm UTC](https://discuss.gradle.org/t/eclipse-gradle-dependency-for-a-war-module/10190 "2015-06-19T18:10:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unnijboss](https://avatars.discourse-cdn.com/v4/letter/u/e36b37/32.png) [@unnijboss](https://discuss.gradle.org/u/unnijboss)\
**Post date:** [June 19, 2015, 6:10pm UTC](https://discuss.gradle.org/t/eclipse-gradle-dependency-for-a-war-module/10190/1 "2015-06-19T18:10:52Z")

</div>

I am new to gradle. Was trying to set up a simple web project with gradle eclipse plugin.  
I have a root directory and a war sub folder with build.graddle at both the places. Is there anyway I can generate the gradle dependencies in eclipse based on the dependencies declared in build.gradle in war module.

The build is fine and working if I do the gradle build command but not able to set the classpath in eclipse.

---

<div class="post-metadata">

**Author:** ![Francois\_Guillot](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/francois_guillot/32/8566_2.png) [@Francois\_Guillot](https://discuss.gradle.org/u/Francois_Guillot)\
**Post date:** [June 19, 2015, 10:35pm UTC](https://discuss.gradle.org/t/eclipse-gradle-dependency-for-a-war-module/10190/2 "2015-06-19T22:35:58Z")

</div>

This thread  
[https://discuss.gradle.org/t/i-have-a-question-about-how-the-gradle-eclipse-plugin-fails-to-generate-java-build-path-source-folder-entries?source\_topic\_id=10190](https://discuss.gradle.org/t/i-have-a-question-about-how-the-gradle-eclipse-plugin-fails-to-generate-java-build-path-source-folder-entries?source_topic_id=10190)  
might help you configuring a global Eclipse classpath that includes subprojects dependencies
