Szczepan Faber wrote: > > Do you mind trying out the gradle eclipse plugin instead? I think it > should > generate correct metadata files so you can import the project into > Eclipse. > Let me know how did it work. > I removed all eclipse project files from project directories, then tried the gradle eclipse plugin with the following command
it actually generates the project dependency as per the discussed dependency replacement. That's good :-) Here you are the resulting /.classpath/ file for /prj2/ In fact if I import the projects into eclipse with /Import|Existing projects into workspace/ I can see the project dependency. Now some funny things: Then if I import the projects into STS through the /Gradle project/ import feature the project dependency is discarded. At this point we have 2 cases: 1. if there's no repo containing prj1 artifacts it fails complaining unresolved deps (that's right, and that's the same result I'd obtain if I would execute the /eclipse/ task without the deps replacement code) 2. if prj1 artifact is reachable from a configured repo, it converts the project dep to an external one, showing the path of the artifact into the gradle cache (i.e. /<classpathentry kind="lib" path="/home/davide/.gradle/caches/artifacts/org.acme/prj1/613e70d8cfe127fbb06396ae827b8105/jars/prj1-0.1-SNAPSHOT.jar" exported="true"/>/). Also this is the same result I'd obtain executing the /eclipse/ task without the deps replacement code. *Could the tooling API be modified to reflect the /eclipse task/ behavior?* Otherwise STS would https://issuetracker.springsource.com/browse/STS-1858?focusedCommentId=45818&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-45818 continue to fail every time I try to refresh gradle deps. That would be more than a PITA to me, cause it would stop my migration to gradle/STS :-) BTW I think improving this close integration with IDEs would be a great enhancement for people using gradle every day. Cheers Davide -- View this message in context: http://gradle.1045684.n5.nabble.com/Is-it-possible-to-elect-a-local-gradle-project-to-satisfy-other-projects-deps-tp4497854p4785691.html Sent from the gradle-user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
