Skip to content

Commit

Permalink
CURRENT should not be a -SNAPSHOT version if build.snapshot is false (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveCTurner committed Nov 24, 2017
1 parent c7ac8e5 commit 3bc3d4d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 3bc3d4d

Please sign in to comment.