Skip to content

Commit

Permalink
license-gather: ignore xml namespaces when parsing POM files (see #43)
Browse files Browse the repository at this point in the history
fixes #43
  • Loading branch information
DreierF authored and vlsi committed Jan 3, 2022
1 parent eda8cc0 commit 1966327
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ Change log
----------
v1.78
* chore: bump Gradle 6.7 -> 6.9.1
* license-gather: ignore xml namespaces when parsing POM files (see #43)

v1.77
* crlf-plugin: bump jgit to 5.13.0.202109080827-r
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ fun GPathResult.attr(name: String): String = get("@$name").text()
@Suppress("UNCHECKED_CAST")
fun GPathResult.getList(name: String) = getProperty(name) as Iterable<GPathResult>

private fun File.parseXml(): GPathResult = XmlSlurper().parse(this)
private fun File.parseXml(): GPathResult = XmlSlurper(false, false).parse(this)

fun GPathResult.parsePom(): PomContents {
fun GPathResult.parseId(parentGroup: String = "") =
Expand Down

0 comments on commit 1966327

Please sign in to comment.