mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 06:16:40 +00:00
CURRENT should not be a -SNAPSHOT version if build.snapshot is false (#27512)
This commit is contained in:
parent
43a91f4184
commit
e8c2e5d6dd
@ -95,6 +95,12 @@ class VersionCollection {
|
||||
prevConsideredVersion = currConsideredVersion
|
||||
}
|
||||
|
||||
// If we're making a release build then the current should not be a snapshot after all.
|
||||
final boolean currentIsSnapshot = "true" == System.getProperty("build.snapshot", "true")
|
||||
if (false == currentIsSnapshot) {
|
||||
versions[-1] = new Version(versions[-1].major, versions[-1].minor, versions[-1].revision, versions[-1].suffix, false, null)
|
||||
}
|
||||
|
||||
this.versions = Collections.unmodifiableList(versions)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user