Gradle Multi-Module Project Setup

前端 未结 1 1431
忘掉有多难
忘掉有多难 2020-12-14 08:30

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

相关标签:
1条回答
  • 2020-12-14 09:24

    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.

    0 讨论(0)
提交回复
热议问题