Issue
- Why do Bundle-Version differ between MANIFEST.MF in fixpack binaries and the source code?
Environment
- Liferay DXP 7.0+
Resolution
To briefly explain the reason it must be clarified the way .jar files are released and fix pack source is packaged.
- When releasing all the binaries are published and afterwards a .lpkg, from those published binaries, is prepared in order to perform regression testing. Meanwhile all bnd.bnd files are incremented with a "prep next" commit message to indicate that version x.y.z has been released, so everything that comes after that release is preparing for x.y.z+1 release.
- The difference in versions gets generated from the way the tag get assigned after the increment, rather than before the increment. The reason is that the source at the tag is what gets bundled, not the source immediately before the publish, since there can be modifications needed from the publishing until the packaging if some bugs are found during the regression testing.
So the best way to know which module version is truly using a fixpack is to check the Release Notes and watch for the Module Version Changes between fixpacks.