# Eclipse enable export "Project and External Dependencies"

**URL:** <https://discuss.gradle.org/t/eclipse-enable-export-project-and-external-dependencies/36556>\
**Category:** Help/Discuss\
**Created:** [June 18, 2020, 4:36pm UTC](https://discuss.gradle.org/t/eclipse-enable-export-project-and-external-dependencies/36556 "2020-06-18T16:36:02Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Pavel\_Trka](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/pavel_trka/32/11923_2.png) [@Pavel\_Trka](https://discuss.gradle.org/u/Pavel_Trka)\
**Post date:** [May 5, 2026, 1:25pm UTC](https://discuss.gradle.org/t/eclipse-enable-export-project-and-external-dependencies/36556/4 "2026-05-05T13:25:51Z")

</div>

For whomever this might still get handy:

The above example is not enough, it did not work for me either in latest Eclipse version or ancient Eclipse version I’m forced to use for some projects .

_The Project and External Dependencies_ `org.eclipse.buildship.core.gradleclasspathcontainer` container must be explicitly added to `containers`, otherwise Buildship in Eclipse is adding the entry automatically so it is not available in the `whenMerged` hook for update if I understand it properly ([How does Buildship create the .classpath file for Eclipse? - #5 by donat](https://discuss.gradle.org/t/how-does-buildship-create-the-classpath-file-for-eclipse/26252/5)).

This is my working version that finally forced Eclipse Buildship to export the container:

```groovy
eclipse {
  classpath {
    // see https://discuss.gradle.org/t/how-does-buildship-create-the-classpath-file-for-eclipse/26252/5
    containers 'org.eclipse.buildship.core.gradleclasspathcontainer'
    
    file {
      whenMerged { classpath ->
        classpath.entries.findAll { entry -> entry.kind == 'con' & path == 'org.eclipse.buildship.core.gradleclasspathcontainer'}*.exported = true
      }
    }
  }
}
```

---

_[View the full topic](https://discuss.gradle.org/t/eclipse-enable-export-project-and-external-dependencies/36556)._
