Hi,
I am moving over a large java project from an ant build system to gradle. It is being done for multiple reasons, and seems to be a necessary step forward.
The project has say
4 projects each dependent on the previous ones, B is dependent on A, e.g.
A->B->C->D
Each project is in a separate git repository.
A,B,C each produce a runnable jar and a library jar.
D solely produces an application.
I can not change the code structure.
How would I write in my build.gradle to produce 2 jars, one with main and one without, so I can have for example
- a runnable jar for Project A with main
- a library jar without main from Project A that Project B can consume and find
My goal is to not simply rewrite the build.xml file from the ant setup, but correctly translate it to gradle, so it is clean and efficient.
Thanks for any advice!