Class VersionUtil


  • public class VersionUtil
    extends Object
    Since:
    Date: 04.05.2015
    Author:
    ar
    • Constructor Detail

      • VersionUtil

        public VersionUtil()
    • Method Detail

      • parseArtifactVersion

        protected static org.apache.maven.artifact.versioning.ArtifactVersion parseArtifactVersion​(String version)
      • addSuffixDelimeterIfNeeded

        protected static String addSuffixDelimeterIfNeeded​(String version)
        Maven DefaultArtifactVersion use '-' sign as delimeter from project version So version like 1.2.3.RELEASE will not parsed properly without modifications Also Maven DefaultArtifactVersion is not compatable with OSGI version format and with Semantic Versioning
        Parameters:
        version -
        Returns:
        See Also:
        DefaultArtifactVersion, Semantic Versioning
      • removeNonDigitPrefix

        protected static String removeNonDigitPrefix​(String version)
      • findNearestVersionTagsBefore

        public static String findNearestVersionTagsBefore​(Collection<String> versionTagList,
                                                          String versionTagNamePart)