Skip to content

Commit

Permalink
fix(publishing): Handle XML elements
Browse files Browse the repository at this point in the history
Fixes #504
  • Loading branch information
aalmiray committed Nov 13, 2023
1 parent e83a5a6 commit 163409e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,12 @@ class PublishingPlugin extends AbstractKordampPlugin {
pom.properties.putAll(expressions)

Node propertiesNode = asNode().children().find {
(it.name() instanceof QName ? it.name().localPart : it.name()) == 'properties'
it.name().toString().contains('properties')
}
if (!propertiesNode) {
propertiesNode = new Node(null, 'properties')
List nodes = asNode().children()
.find { (it.name() instanceof QName ? it.name().localPart : it.name()) == 'dependencyManagement' }
.find { it.name().toString().contains('dependencyManagement') }
.parent().children()
nodes.add(nodes.size() - 1, propertiesNode)
}
Expand Down

0 comments on commit 163409e

Please sign in to comment.