Ignore empty and whitespace rules

This commit is contained in:
Peter Palaga
2020-02-25 08:13:43 +01:00
parent a6248fc919
commit 8b565df4df

View File

@@ -124,7 +124,7 @@ public class SmartBuilder implements Builder {
session.getAllProjects().forEach(p -> {
String rule = p.getProperties().getProperty(MVND_BUILDER_RULE);
if (rule != null) {
if (rule != null && !rule.trim().isEmpty()) {
list.add(rule + " before " + p.getGroupId() + ":" + p.getArtifactId());
}
});