gradle - How do I refresh project dependencies using Buildship in Eclipse? -


eclipse mars released , felt trying out. listed tighter integration gradle 1 of features via buildship.

with luna using gradle integration eclipse (4.4) , found lot easier work trying do; add gradle "nature" existing project without needing remove project , re-import did buildship, , automatically put dependencies declared in build.gradle within project's classpath.

with buildship, didn't see option configure existing project gradle project , couldn't find way make include dependencies specified in build script within project's classpath.

i tried installing original plugin (gife 4.4) eclipse mars , after restarting eclipse automatically did me again. i'm wondering if there's way through buildship alone because right now, although works, it's quite funny setup. project's dropdown menu looks this:

apart looking bit odd quite nice setup, since combines automatic dependency management of gife ability run gradle tasks directly eclipse buildship provides.

updating dependencies eclipse sees should simple as:

right click on project -> gradle -> refresh 

update in buildship 1.0.16

currently need jump through delete-and-import hoop first time use existing gradle project buildship. can use add gradle nature option:

 right click on project -> configure -> add gradle nature 

“refresh gradle project” shown when right-clicking on .gradle file in context menu of gradle editor. source

see update below however may find when project imported, didn't new project , external dependencies classpath entry able see in project properties -> java build path -> libraries if indeed missing, add following project's .classpath file , gradle goodness should start working:

<classpathentry exported="true" kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/> 

update in buildship 1.0.16

gradle classpath container restored if missing

when converting existing eclipse java project gradle, gradle classpath container missing. added when project java project.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -