Add additional assertion in Arguments for originalVersion not being null

This commit is contained in:
Oleg Zhurakousky
2022-01-27 12:04:42 +01:00
parent 066334e81c
commit c0b646031d

View File

@@ -105,6 +105,8 @@ public final class Arguments implements Serializable {
this.projects = new Projects(processedProjects.stream()
.map(p -> p.newProjectVersion).collect(Collectors.toSet()));
this.originalVersion = thisProject.originalVersion;
Assert.isTrue(!StringUtils.isEmpty(this.originalVersion),
"Original Version must not be empty for project: " + thisProject.name());
this.versionFromBom = thisProject.thisProjectVersionFromBom;
this.properties = thisProject.thisProjectReleaserProperties;
this.options = thisProject.options;