Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6064

Add "dev" string item into ComparableVersion

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.3.9
    • Fix Version/s: None
    • Labels:
    • Environment:
      Any operating Systems

      Description

      We're using a popular Gradle plugin "gradle-git" ( from Andrew Oberstar ) to implement Semantic Versioning with Continuous Deployment. There's a strategy supported by gradle-git that defines a "dev" stage when we have something uncommitted on a developer branch, which is very useful. Some examples to demonstrate the "dev" scenario can be found here: https://github.com/ajoberstar/gradle-git/wiki/Release%20Plugins#how-do-i-use-the-opinion-plugin

      However, current version of org.apache.maven.artifact.versioning.ComparableVersion does not support "dev" stage since there's no item "dev" in the field _QUALIFIERS of nested class StringItem. And since this is a private static final field, it is not able to be overwritten by inheritance. Can we add the "dev" item into _QUALIFIERS ?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                hwang_core Hui Wang
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0.5h
                  0.5h
                  Remaining:
                  Remaining Estimate - 0.5h
                  0.5h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified