Vote count: 0
I am currently trying to break my Spring monolith app into multiple services. I have many entities (@Entity, POJO) that would be used in different services. Obviously I don't want to copy & paste the common code but it seems very fragile to build a jar file and sharing them between projects.
Here is what I have:
core
-- @Entity classes
-- POJO
App1 - deployed independently
-- src
-- core classes
App2 - deployed independently
-- src
-- core classes
I am using gradle as my build tool, and it looks like a multi=project builds. But I am not sure if that means my core becomes its own repo that must be downloaded to be included, or if that is built as a jar and included.
Can anyone point me to a good example or tutorial on this? So far I haven't found a clean way to do this.
asked 21 secs ago
sharing Java classes between services
Aucun commentaire:
Enregistrer un commentaire