Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2015-01-23
1
Medium Priority
?
2,937 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 2000 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
1

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

A short article about problems I had with the new location API and permissions in Marshmallow
These days software publishers make it possible to move all the possible applications on smartphones, tablets, smartwatches, and more. Although behind every logic and decision is a gross doubt: how do they make it possible? In this blog post, we sha…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This video teaches viewers about errors in exception handling.
Suggested Courses

916 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