Replies: 1 comment 3 replies
-
TBH, I though we already support So, the following .format(
countSep = "-SNAPSHOT",
dirtyHashDigits = 0,
dirtySep = "",
revHashDigits = 0,
revSep = ""
)
// => "5.3.7-SNAPSHOT30 I tend to re-use the -* `commitCountPad: Byte = 0` - if greater than zero, the commit count will be padded to the given length
+* `commitCountPad: Byte = 0` - if greater than zero, the commit count will be padded to the given length. If negative, no commit count will be printed .format(
commitCountPad = -1,
countSep = "-SNAPSHOT",
dirtyHashDigits = 0,
dirtySep = "",
revHashDigits = 0,
revSep = ""
)
// => 5.3.7-SNAPSHOT |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Yet another request 😆 . I'd like the ability to be able to have
-SNAPSHOT
appended to my snapshot versions. The reason for this is that if you're publishing to sonatype snapshots they require your version to actually end in-SNAPSHOT
. You can also see this in sbt-dynver, which is what I'm using to using. In their readme you can see:Do you think this could be added? Maybe inside of
format
we can add aappendSnapshot: Boolean = false
so that users could just turn this on, and if it's detected that it's a "snapshot" then everything else stays the same but-SNAPSHOT
gets added at the end. wdyt?Beta Was this translation helpful? Give feedback.
All reactions