Create virtual modules/projects


(Sason Ohanian) #1

Hi!

I have a big multi module build producing lots of jars and other resources that are zipped into a dist. I have been introducing gradle to this build and one goal is to produce maven artifacts for the different subsystems.

Since there are so many modules with dependencies to the left and right, it is not really reasonable to publish an artifact for each module. I basically want to aggregate several modules into one artifact so that each artifact has a meaning for the end user.

I want to go from, lets say, 30-40 modules that will produce artifacts to something like server.jar, client.jar, common.jar, and maybe a few more.

Is there a way to define a set of projects in gradle that will be aggregated into one virtual project? The virtual projects should then act like any other gradle project.

Is there any support in gradle for doing this?