Help with gradle transitive dependency


I am new to gradle and I have a question regarding dependency transitivity. I can not manage to inherit dependency from library that the main application depends on.

So lets assume we have project MyLibrary that depends to commons-collection apache library. What I want to achieve is that when I use MyLibrary in MyApplication (project) with dependency to MyLibrary that the commons-collection is also pulled and configured as dependency.

How can I do that?