Add timestamp if version is NOT a release
This commit is contained in:
parent
c227e496c3
commit
ee7402a442
|
@ -29,10 +29,12 @@ if (File(projectDir, ".git").exists()) {
|
|||
}
|
||||
if (changelog == "") changelog = "No changelog"
|
||||
|
||||
val timestamp: Long = if (project.hasProperty("timestamp")) "${project.property("timestamp")}".toLong()
|
||||
else (System.currentTimeMillis() / 1000L)
|
||||
if (!project.hasProperty("release")) {
|
||||
val timestamp: Long = if (project.hasProperty("timestamp")) "${project.property("timestamp")}".toLong()
|
||||
else (System.currentTimeMillis() / 1000L)
|
||||
|
||||
if (project.hasProperty("release")) versionS += "-$timestamp"
|
||||
versionS += "-$timestamp"
|
||||
}
|
||||
|
||||
println(changelog)
|
||||
|
||||
|
|
Loading…
Reference in New Issue