Solved

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

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
java jdbc batch example 8 34
Work with App store 7 52
jsp insert to database example 2 24
Java: anonymous class 4 20
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
A short article about a problem I had getting the GPS LocationListener working.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.

777 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