Solved

what does declaring transitive = true in build.gradle dependency means

Posted on 2015-01-23
1
2,032 Views
Last Modified: 2015-02-10
Hi,

I have a following piece of code in my build.gradle file :
dependencies {
 compile('to.talk.aragorn:raven-client:0.4-SNAPSHOT@aar') {
        transitive = true
    }
}

Open in new window

By this line compile('to.talk.aragorn:raven-client:0.4-SNAPSHOT@aar') i understand that gradle will fetch the aar and add it to my projects buildpath and classpath. But what does declaring   transitive = true means ??

Thanks
0
Comment
Question by:Rohit Bajaj
1 Comment
 
LVL 17

Accepted Solution

by:
Chris Harte earned 500 total points
ID: 40566318
It just turns transitive dependencies on, which allows recursive dependencies within the hierarchy of dependent libraries, I think. This is the manual, 51.2.2 is paragraph on transitives and I am not much the wiser after reading it. (Part of the reason I am still using eclipse rather than studio).

http://www.gradle.org/docs/current/userguide/dependency_management.html
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Working settings for French ISP Orange "Prêt à Surfer" SIM cards for data connections only. Can't be found anywhere else !
A short article about a problem I had getting the GPS LocationListener working.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question