3

In gradle is it possible to get dependencies for a build from another build file ?

Example, Imagine project-1 has project1/build.gradle, How do I get the dependencies of the same in project-2 from project2/build.gradle ?

1 Answer 1

2

Cou could put your dependencies in an external file, e.g. 'dependencies.gradle' and import it like this:

apply from: 'dependencies.gradle'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.