Skip to content

Handle - as version separator in addition to + #103

@swsnr

Description

@swsnr

sbt-dynver recommends to use - in case + doesn't work (e.g. docker). See https://github.com/dwijnand/sbt-dynver#portable-version-strings>.

However this plugin doesn't seem to detect the previous version correctly: If I set ThisBuild / dynverSeparator := "-" then versionPolicyPreviousVersions is empty unless a previous version exists in the local Ivy repository. This makes version checks spuriously succeed on my CI (where the local repo is empty), even if I make a binary incompatible change, because mimaPreviousArtifacts remains empty.

Probably related, versionPolicyPreviousVersions finds published snapshot versions, e.g. 2.0.0-2-d7f5b21a, for its version check.

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