I need to break up my gradle project into three modules ...
Answered
Hello All Awesome Users,
I have a gradle java project in IntellJ that I need to break up into three modules as:
- A java library module
- An application module that will use the above library module
- Another application module that will again use the above library module. This application module is independent of the above one.
So I need to have the target setup as follows:
- My project should show three separate modules as mentioned above.
- The application modules must have dependency set to the library one.
- If there is change in the library code, and when I run any application module, it compiles and update the library automatically
- The dependent libraries/packages must be stored in a single directory, as almost all these three modules will have the same dependencies.
- I can create two separate builds for each of the application modules that also contains the library from the #1 module (above).
Guys, I am new to gradle, and have already spend a day figuring out how to work this thing up. Please help me achieve the above requirements.
Thanks
Please sign in to leave a comment.
See https://blog.jetbrains.com/idea/2017/03/webinar-recording-composite-builds-with-gradle/.