Merge branch '2.3.x'

Closes gh-22066
This commit is contained in:
Andy Wilkinson
2020-06-23 10:44:46 +01:00
2 changed files with 159 additions and 35 deletions

View File

@@ -185,8 +185,10 @@ public class BomPlugin implements Plugin<Project> {
for (Node dependency : findChildren(dependencies, "dependency")) {
String groupId = findChild(dependency, "groupId").text();
String artifactId = findChild(dependency, "artifactId").text();
findChild(dependency, "version")
.setValue("${" + this.bom.getArtifactVersionProperty(groupId, artifactId) + "}");
String versionProperty = this.bom.getArtifactVersionProperty(groupId, artifactId);
if (versionProperty != null) {
findChild(dependency, "version").setValue("${" + versionProperty + "}");
}
}
}
}