Solved

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

Posted on 2015-01-23
1
2,139 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: 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

Title # Comments Views Activity
Certificat to iSeries KeyStore 1 31
ejb message driven bean mdb creation steps 2 54
Exchange 2010 - SBS 2011 - Public calenders 4 31
Office 365 Controls 3 22
A short article about a problem I had getting the GPS LocationListener working.
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
Suggested Courses

751 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