Skip to content

Support specifying the increment strategy for current-version #27

@davidafsilva

Description

@davidafsilva

Description

Support an optional argument on current-version that enables clients of vergo to specify the increment strategy instead of always using minor.

pre, err := version.IncMinor().SetPrerelease("SNAPSHOT")

Use-Cases

Provide properly versioned snapshot releases according to the change being made to the application.

We use this to provide versions of libraries that are built as part of a change request (PR) being submitted.

Axion

# XXX = Patch|Minor|Major
# and then some more, but we're only really interested in these three
gradle currentVersion -Prelease.versionIncrementer=incrementXXX

Notes

I already have the changes made to a local branch, but I do not seem to have the required permissions to push it to the remote.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions