On Jul 29, 2011, at 12:17 AM, Adam Murdoch wrote:

> 
> On 29/07/2011, at 12:46 PM, Hani Suleiman wrote:
> 
>> Pretty much any of the solutions below would address the issue!
>> 
>> In my case, I'm doing it manually until the .idea directory support is in. 
>> Even when that's done, there are still configuration elements that the idea 
>> plugin doesn't really handle (for example, the 'provided' dependencies), 
>> exclusions, etc.
> 
> The idea plugin can handle both of those things (assuming by 'exclusions' you 
> mean excluded folders). You do have to do a little bit of configuration in 
> the build script to make this work.
> 
> Something you can do as a workaround, is add a task to copy the project's 
> dependencies into a directory somewhere under the project directory, and 
> point your ide at that directory (or individual files in that directory):
> 
> task ideLibs(type: Sync) {
>     from configurations.testRuntime
>     into 'ide/libs'
> }

I'm trying to do this but without much success. Right now I can get a list of 
ExternalModuleDependency objects via 
configuration.getAllDependencies(ExternalModuleDependency.class). I'm having 
trouble going from that to jar files, and even once that's done, how would I 
get the equivalent source files?

The reason I want to get external dependencies only is to have my subproject 
dependencies specified in the IDE, and to only suck in the external 
dependencies for source/compile resolution.



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to