I'm trying to figure out how I can approach the following project setup:
βTop Android Project β βββ Project 1 - (Pure Java Modules) β β β βββ Module A1 β βββ Module B1 β : β βββ Module Z1 β βββ Project 2 - (Android Libraries Modules) β β β βββ Module A2 β βββ Module B2 β : β βββ Module Z2 β βββ Module - Actual Android Project
In the current installation, I have build.gradle in each of the modules, what I really hate about this setting is that all the build.gradle content is duplicated between the modules.
The fact is that in most of them I need the same logic: " Clean Java modules " are all infra modules that I would like to use to output JavaDoc and sources, as well as deploying to some remote repository ( * default).
On the other hand, some modules of β Clean Java modules β I would like, for example, to have a second plan, in addition to the built-in default * assembly, I would like to deploy a jar of dependencies for a specific project or something like that.
When creating the Actual Android project, I would like the modules to compile in the default assembly * and finally set the default build.gradle for all my Android projects, which are quite a few, and I would not want to duplicate this file.
==================================================== ==============
I suppose I'm looking for something like a parent pom Maven, but since I donβt quite understand how Gradle works, I bring this to you guys to share my thoughts ...
Taking into account that duplication of the same assembly file (I suppose) is unacceptable, because I can change something in the whole assembly logic of all modules
What would be the best approach to handle this kind of settings?
android android-studio build.gradle gradle
TacB0sS Jul 08 '13 at 21:55 2013-07-08 21:55
source share