Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ public SemanticVersionChange getNextVersionChangeType() throws ScmApiException,
@Override
public SemanticVersion getNextVersion(SemanticVersion currentVersion) throws IOException, ScmApiException
{
SemanticVersion nextVersion = currentVersion;
SemanticVersionChange change = this.getNextVersionChangeType();
return currentVersion.nextVersion(change);
if (!SemanticVersionChange.PATCH.equals(change)) {
nextVersion = currentVersion.nextVersion(change);
}
return nextVersion;
}
}