mirror of https://github.com/sbt/sbt.git
stamp-version should fail if current version is a release
This commit is contained in:
parent
90d7834c86
commit
138a5ecd20
|
|
@ -19,7 +19,7 @@ object Status
|
|||
if(v endsWith Snapshot)
|
||||
(v stripSuffix Snapshot) + "-" + timestampString(System.currentTimeMillis)
|
||||
else
|
||||
v
|
||||
error("Release version '" + v + "' cannot be stamped")
|
||||
def timestampString(time: Long): String =
|
||||
{
|
||||
val format = new java.text.SimpleDateFormat("yyyyMMdd-HHmmss")
|
||||
|
|
|
|||
Loading…
Reference in New Issue