SNAPSHOT suffix instead of manual timestamps
ci/woodpecker/push/pages Pipeline was successful Details
ci/woodpecker/push/gradle Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2022-11-03 14:59:34 +01:00
parent 2eee575595
commit a69a089291
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 1 additions and 4 deletions

View File

@ -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)