Skip to content

Commit

Permalink
feat: Fail if version contains unresolved expressions
Browse files Browse the repository at this point in the history
Fixes #18
  • Loading branch information
aalmiray committed Mar 25, 2024
1 parent afc5314 commit 7344821
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ public static void check(Logger log, MavenProject project, Configuration configu
log.debug("Checking <version>");
if (isBlank(fullModel.getVersion())) {
errors.add("<version> can not be blank.");
} else if (fullModel.getVersion().contains("${")) {
errors.add("<version> contains an unresolved expression: " + fullModel.getVersion());
}

log.debug("Checking <name>");
Expand Down

0 comments on commit 7344821

Please sign in to comment.