Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven module versioning - best practice

If I have a multi-module project, let's simplify it to:

    my project
  • module a
  • module b

where module b depends on module a.

If I make changes in module b, and update its version, should I also increase the version of module a, even if this module has not been changed?

Thank you, Roxana

like image 760
Roxana Avatar asked Apr 24 '26 00:04

Roxana


1 Answers

A short answer: it depends.

If your modules are just inalienable parts of a big complex project then it makes sense to have the same version in every project.

On the contrary, if your modules are low coupled (for example A is web service and B is Android client for A) then you may have different versions in each.

like image 179
madhead - StandWithUkraine Avatar answered Apr 30 '26 21:04

madhead - StandWithUkraine



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!