I have a project with 1 parent and its multi modules
Parent - module 1 - module 2 - module 3
I am using jenkins to build project. Each parent and its modules should maintain independent versions.
Requirement is, when i do DEV release by jenkins, i want to increase version of module only if there is any change in SVN/GIT automatically if my build is successful.
Eg:
parent - 1.2
- module1 - 1.3
- module2 - 1.2
- module3 - 1.4
If there are some changes done in module 3, which trigger jenkins build. If my jenkins build is successful only module3 build version should be incremented to 1.5 and pom.xml should be updated.
parent - 1.2 - module1 - 1.3 - module2 - 1.2 - module3 - 1.5