# How do I stop gradle from overwriting my .classpath in Eclipse?

**URL:** <https://discuss.gradle.org/t/how-do-i-stop-gradle-from-overwriting-my-classpath-in-eclipse/3256>\
**Category:** Old Forum Archive\
**Created:** [February 10, 2012, 2:25am UTC](https://discuss.gradle.org/t/how-do-i-stop-gradle-from-overwriting-my-classpath-in-eclipse/3256 "2012-02-10T02:25:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark\_youwanes](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@mark\_youwanes](https://discuss.gradle.org/u/mark_youwanes)\
**Post date:** [February 10, 2012, 2:25am UTC](https://discuss.gradle.org/t/how-do-i-stop-gradle-from-overwriting-my-classpath-in-eclipse/3256/1 "2012-02-10T02:25:00Z")

</div>

I’d like control my project and classpath setup through Eclipse, and have gradle use that setup. However, whenever I do a refresh all (using gradle through STS), my classpath file is overwritten. What is causing this, and is there a way to disable it?

---

<div class="post-metadata">

**Author:** ![Dan\_Stine](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Dan\_Stine](https://discuss.gradle.org/u/Dan_Stine)\
**Post date:** [February 10, 2012, 1:37pm UTC](https://discuss.gradle.org/t/how-do-i-stop-gradle-from-overwriting-my-classpath-in-eclipse/3256/2 "2012-02-10T13:37:00Z")

</div>

Sounds like you’re going against the grain. You can derive your .classpath from build.gradle using the eclipse plugin to Gradle, and that’s what STS is doing. I’m not aware of a way to push your .classpath into build.gradle.

FWIW, we’ve stopped using the Gradle project facet provided by STS. Instead we manually execute “gradle cleanEclipse eclipse” or variations such as “gradle cleanEclipseClasspath eclipseClasspath”.
