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 (changelog == "") changelog = "No changelog"
|
||||||
|
|
||||||
if (!project.hasProperty("release")) {
|
if (!project.hasProperty("release")) {
|
||||||
val timestamp: Long = if (project.hasProperty("timestamp")) "${project.property("timestamp")}".toLong()
|
versionS += "-SNAPSHOT"
|
||||||
else (System.currentTimeMillis() / 1000L)
|
|
||||||
|
|
||||||
versionS += "-$timestamp"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
println(changelog)
|
println(changelog)
|
||||||
|
|
Loading…
Reference in New Issue