How do you apply libraries to multi module gradle project from root level?
I would like to use a library throughout multiple modules in my project. In order to keep all the configuration for this library in one spot, I am wondering if it is possible to apply it at the root level. How do I do this? This library is an external third party library, not a module that other modules in the same project depend on.
5 Replies
⌛ This post has been reserved for your question.
Hey @DaMango! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.qaisar_00_62315
Avatar
//
There’s different configuration type that you can apply on the root gradle file, “subprojects” and “allprojects”
Let’s say you have a gradle project with 2 modules called A and B, inside of your root gradle file you would but whatever dependencies you want in both of them through the subprojects configuration
@Qaisar
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.