ci: Snapshot builds are the default

This commit is contained in:
NotMyFault 2021-11-22 14:35:40 +01:00
parent 705f580290
commit 7d5659aeac
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C
1 changed files with 3 additions and 3 deletions

View File

@ -29,13 +29,13 @@ ext {
date = git.head().dateTime.format(DateTimeFormatter.ofPattern("yy.MM.dd"))
revision = "-${git.head().abbreviatedId}"
buildNumber = if (project.hasProperty("buildnumber")) {
project.properties["buildnumber"] as String
snapshot + "+" + project.properties["buildnumber"] as String
} else {
null.toString() //1.18 TODO: drop classifier if not used, otherwise the version is 'null'
project.properties["snapshot"] as String
}
}
version = String.format("%s-%s+%s", rootVersion, snapshot, buildNumber)
version = String.format("%s-%s", rootVersion, buildNumber)
if (!project.hasProperty("gitCommitHash")) {
apply(plugin = "org.ajoberstar.grgit")