I come from a web-development background and have frequently worked on projects that use Lerna for handling multiple packages from the same repository in JavaScript. As it stands now, I need to recreate some of those projects in Java, and need to know how to do it without using Lerna, and using Gradle as our build tool.
My questions are about how to handle a large repository with multiple packages in Java:
Edit: Rewording the question to fit in the guidelines. Keeping the old questions below in strike through so old answers make more sense.
At this point in time, the de-facto standard for Java project management seems to be a combination of gradle and maven (via a gradle plugin).
The combination of these two eliminates the need for tooling such as Lerna, as they allow local dependencies to be configured out of the box.
After setting up a multi-project build, you can add sibling projects as dependencies like so:
dependencies {
compile project(':sibling')
}
If you use an IDE such as Intellij IDEA for instance which supports gradle, it will create the initial directory structure for you when you create a gradle project, and configure new modules that you create via its UI. It might be a good idea to play with this for a little bit in order to get a grasp of how it's all wired up.