Our software stack consists of several Gradle modules, including an authentication module that handles logins, etc.Now imagine each module's data model includes a User entity.What is a common / good practice to avoid reduncancy if all of the modules depend on User classes?We also use different databases.Right now we have all User records in each database and let each module communicate with the auth server via HTTP. This is quite ugly, imho.
Multi-module setup: How to avoid redundancy?
java;hibernate;gradle;submodules