getVariantData() is private don't use this.

For each variant there is a _<name>Compile Configuration object. You can
have your task resolve this configuration object and get the list of
dependencies (it's standard Gradle API). However this does not give you the
actual jar inside the aar.

We don't really have such an API right now that will give you this. Even
though we resolve the dependencies at configuration time we need to get
away from it and do it at execution time to speed up start up time, so that
API would stop working when we do this.


On Sun, Sep 4, 2016 at 5:32 AM, Tomáš Procházka <[email protected]>
wrote:

> Something like (valid fo 2.2.0-RC1+)
>
> project.android.applicationVariants.each { variant ->
>    variant.getVariantData().variantDependency.packageDependencies.
> androidDependencies - set of item where every item has jarFile
>    variant.getVariantData().variantDependency.packageDependencies.
> jarDependencies - set of item where every item has jarFile
> }
>
> And every dependency can have transitive dependencies
>
> But I believe that here will be also more easy way, already flattened
> classpath lists
>
>
> Dne čtvrtek 1. září 2016 22:20:19 UTC+2 vogella napsal(a):
>
>> Hi,
>>
>> in my Gradle build script I would like to retrieve the classpath entries
>> of the different flavors in my application. I'm mostly interested in the
>> "main" flavor. I looked at http://google.github.io/androi
>> d-gradle-dsl/current/ but was not successful to get this information in
>> my Gradle build script.
>>
>> Could you advice?
>>
>> With this infomation, I hope I can use the latest and greatest Eclipse
>> Buildship release (https://discuss.gradle.org/t/
>> buildship-1-0-18-is-now-available/19012) to configure the classpath in
>> Eclipse via the "Eclipse" task. This would be helpful to me and my
>> customers as we could switch between Android Studio and Eclipse for
>> development without any big effort.
>>
>> Best regards, Lars
>>
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "adt-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to