Solved

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

Posted on 2015-01-23
1
1,378 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 16

Accepted Solution

by:
Chris Harte earned 500 total points
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
The viewer will learn how to implement Singleton Design Pattern in Java.

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now