bndtools/bndtools — Issue #318: Support @Version for package version management
Author: magnet
Created: 2011-12-09 10:44:27+00:00
State: open

As far as I know BndTools uses the packageinfo file in exported packages to store the package version. Bnd also supports the @aQute.bnd.annotation.Version annotation in the package-info.java file.

I would like BndTools to support @Version as well, so that semantic versioning can work (and update) the annotation content rather than the packageinfo file? There should be a preference to specify whether to use @Version in package-info.java or the packageinfo file.

I understand this requires a bit more parsing -- and interaction with a file that might be open in an Eclipse editor (e.g, more potential sync problems) -- but @Version has some advantages (e.g easily adding package version to Javadoc, not having 1 more file ;)) but I guess it's mainly a matter of taste.