mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
ci: Snapshot builds are the default
This commit is contained in:
parent
705f580290
commit
7d5659aeac
@ -29,13 +29,13 @@ ext {
|
|||||||
date = git.head().dateTime.format(DateTimeFormatter.ofPattern("yy.MM.dd"))
|
date = git.head().dateTime.format(DateTimeFormatter.ofPattern("yy.MM.dd"))
|
||||||
revision = "-${git.head().abbreviatedId}"
|
revision = "-${git.head().abbreviatedId}"
|
||||||
buildNumber = if (project.hasProperty("buildnumber")) {
|
buildNumber = if (project.hasProperty("buildnumber")) {
|
||||||
project.properties["buildnumber"] as String
|
snapshot + "+" + project.properties["buildnumber"] as String
|
||||||
} else {
|
} 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")) {
|
if (!project.hasProperty("gitCommitHash")) {
|
||||||
apply(plugin = "org.ajoberstar.grgit")
|
apply(plugin = "org.ajoberstar.grgit")
|
||||||
|
Loading…
Reference in New Issue
Block a user