What version numbering scheme to use?

前端 未结 5 2018
梦如初夏
梦如初夏 2020-12-23 02:05

I\'m looking for a version numbering scheme that expresses the extent of change, especially compatiblity.

Apache APR, for example, use the well known version number

5条回答
  •  时光取名叫无心
    2020-12-23 03:10

    Here is the current Maven version comparison algorithm, and a discussion of it. As long as versions only grow, and all fields except the build number are updated manually, you're good. Qualifiers work like this: if one is a prefix of the other, longer is older. Otherwise they are compared alphabetically. Use them for pre-releases.

    Seconding the use of semantic versioning for expressing compatibility; major is for non-backwards compatible changes, minor for backward-compatible features, patch for backward-compatible bugfixes. Document it so your library users can express dependencies on your library correctly. Your snapshots are automated and don't have to increment these, except the first snapshot after a release because of the way prefixes are compared.

提交回复
热议问题