Merge branch '2.3.x'
Closes gh-22066
This commit is contained in:
@@ -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 + "}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user