I\'ve recently started using Gradle and replacing my existing Maven-based projects. I have had many issues in the past with handling multi-module builds with Maven. Gradle h
The directory layout that you've chosen already hints at a good solution. I suggest to have three separate builds: EnterpriseApp1
, CommonLib
, and ClientApplication
. I'd publish CommonLib
to a Maven or Ivy repository so that the other two builds can consume it from there. For local development you can publish CommonLib
to the local Maven repo (easiest) or a file-based Ivy repo.