I have a set of Spring Boot-based microservice projects. Each is a multi-module project, with a root POM, and module directories with their own POMs. Each root POM has, as it's parent, the spring-boot-starter-parent artifact.
Each of these multi-module projects currently build successfully, and result in 3 artifacts each. However, each project has it's own version.
I want to accomplish 2 things:
- Stamp this set of microservice projects with a common version across all of them.
- Enforce a common set of dependency versions across all
of them, similar to how
<dependencyManagement>works within a project. (e.g. force each service to use versionx.y.zof theexample-common-dependencydependency)
Is this possible in Maven?
If not, what about Gradle?
Thank you for your help!