4 ms·
Would be nice to show how to handle multimodule projects. Maven does that out of the box but Gradle is rather complicated (too many ways). Another idea: publis
by marwis 3y ago
Would be nice to show how to handle multimodule projects.
Maven does that out of the box but Gradle is rather complicated (too many ways).
Another idea: publish as inheritable POM for Maven and Gradle convention plugin so that people don't need to copy all that boilerplate (with some refactoring to make it reusable)
- sverhagen 3y agoIt's not trivial to get right. People easily misunderstand the purpose of multimodule projects and parent POMs. And before you know it, your team is maintaining versions of all dependencies in a released parent, and all modules need to be updated at the same time when there's a new version of the parent. Yey, a distributed monolith. Or something like that. Perhaps make a simple parent POM that defines long-term truths for your organization (where your Maven repository is, maybe some very well-established build configuration, and zero to none dependencies). (And if you want to manage dependencies a bit more strictly, like everywhere in oop: composition over inheritence.)