Does Play subprojects need each an ApplicationLoader with Macwire?

76 Views Asked by At

Given the following set of sub-projects: Play subproject can't import Play-json classes

Should each Project need to have an independent ApplicationLoader? For example for the api module, should I create and ApiApplicationLoader and for the parent project, should I also create a BackendApplicationLoader.

Take in consideration that the parent project is useful for Dev purposes, but when deploying each Module Api, Reporting and CMS might get deployed in different servers. However, Core module should be shared, does that mean in that case. CoreApplicationLoader is not needed?

1

There are 1 best solutions below

1
On BEST ANSWER

Consider the setup of guardian/frontend where they have

  • multiple application sub-projects (article, discussion, sport, identity, etc.)
  • each application sub-project is deployed to a separate server
  • each application sub-project has a separate application loader (AppLoader)
  • shared common subproject which acts as a library and is not deployed (common)
  • application sub-project for local development purposes which is not deployed (dev-build)
  • wiring via MacWire