I need some gradle awesomeness.
I have a project with module architecture. It has modules:
api
, platform
and extension modules which are made by using api
module. Since I've started to realize this project alone it has a file tree:
root
|
|--api
|
|--platform
|
|--extensions
|
|--extension1
|
|--extension2
etc
In each of this components (api, platform, extension1, extension2) file build.gradle
exists to compile the module. I want to make a universal build.gradle
-script in the root directory to be able to compile all modules of the project in one time and be able to run it and debug (through gradle application
-plugin and run task).
I've tried to realize it by adding project dependcies and putting them into dependencies
-part of my build.gradle
-script in the root directory but it does not work.
I could also make a simple shell
script to do that but it is not cool, you know it.
Resume
Need a ONE build.gradle script in the root directory which can compile all the modules in once and after compiling it will gather all files(in my case it is .ini and .jar files) from build/libs
directory of each module and copy it into root/build
directory.