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
JavaBot
JavaBot6mo ago
This post has been reserved for your question.
Hey @DaMango! Please use /close or the Close Post button 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here. 💤 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.
JavaBot
JavaBot6mo ago
qaisar_00_62315
Avatar
From qaisar_00_62315
Qaisar
Qaisar6mo ago
//
oskar
oskar6mo ago
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
JavaBot
JavaBot6mo ago
💤 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.

Did you find this page helpful?