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.
You have to select "Refresh Dependencies" in the "Gradle" context menu that appears when you right-click the project in the Package Explorer.
Follow those steps to update Gradle project in Eclipse:
apply plugin : 'eclipse'
gradle clean
and then gradle eclipse
.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With