Multi-module builds empty jars


(Sason Ohanian) #1

Hello!

I have a multi-module build with a quite big hierarchy of projects. It look something like this:

root
* subsystems
** subsystem-a
*** project-with-sources1
*** project-with-sources2
** subsystem-b
*** project-with-sources3
*** project-with-sources4

the subsystem-a/b level is not a project. My setting.gradle file looks something like this:

include "subsystems:subsystem-a:project-with-sources1",
.
.
.

when I assemble the root project, the intermediate folders containing the subsystems are build like project and produce a jar file. How do I modify my build not to include these folders as projects?


(Peter Niederwieser) #2

You’ll need to make sure that you don’t apply plugins like ‘java’ to projects that don’t contain code.