SNAPSHOT suffix instead of manual timestamps
This commit is contained in:
parent
2eee575595
commit
a69a089291
|
@ -30,10 +30,7 @@ if (File(projectDir, ".git").exists()) {
|
|||
if (changelog == "") changelog = "No changelog"
|
||||
|
||||
if (!project.hasProperty("release")) {
|
||||
val timestamp: Long = if (project.hasProperty("timestamp")) "${project.property("timestamp")}".toLong()
|
||||
else (System.currentTimeMillis() / 1000L)
|
||||
|
||||
versionS += "-$timestamp"
|
||||
versionS += "-SNAPSHOT"
|
||||
}
|
||||
|
||||
println(changelog)
|
||||
|
|
Loading…
Reference in New Issue