Update my gradle dependencies in eclipse

eclipse, gradle

Solution

You have to select "Refresh Dependencies" in the "Gradle" context menu that appears when you right-click the project in the Package Explorer.

Problem

I have a simple gradle project in my eclipse. I update the build.gradle to include a few apache http jars... ``` dependencies { compile group: 'commons-collections', name: 'commons-collections', version: '3.2' compile 'org.apache.httpcomponents:httpclient:4.2.3' compile "org.apache.httpcomponents:httpmime:4.2.3" testCompile group: 'junit', name: 'junit', version: '4.+' } ``` However in my code, where I reference some Apache HTTP stuff I get: ``` The import org.apache.http cannot be resolved ``` Any tips on what I need to do to make Eclipse see the new dependencies in my build.gradle? I tried doing a clean but that does not work. My gradle plugin is: ``` Gradle IDE 3.3.0.201307040643-RELEASE org.springsource.ide.eclipse.gradle.feature.feature.group GoPivotal, Inc. ```

Original source

Related problems